You are here

public function LegacyNumberFormatter::setMinimumFractionDigits in Price 3.x

Same name and namespace in other branches
  1. 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setMinimumFractionDigits()
  2. 3.0.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setMinimumFractionDigits()

Sets the minimum number of fraction digits.

Parameters

int $minimum_fraction_digits: The minimum number of fraction digits.

Return value

$this

File

src/LegacyNumberFormatter.php, line 104

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\price

Code

public function setMinimumFractionDigits($minimum_fraction_digits) {
  $this->options['minimum_fraction_digits'] = $minimum_fraction_digits;
  return $this;
}