public function LegacyNumberFormatter::setMaximumFractionDigits in Price 3.x
Same name and namespace in other branches
- 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setMaximumFractionDigits()
- 3.0.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setMaximumFractionDigits()
Sets the maximum number of fraction digits.
Parameters
int $maximum_fraction_digits: The maximum number of fraction digits.
Return value
$this
File
- src/
LegacyNumberFormatter.php, line 117
Class
- LegacyNumberFormatter
- Provides a legacy number formatter for the deprecated NumberFormatterFactory.
Namespace
Drupal\priceCode
public function setMaximumFractionDigits($maximum_fraction_digits) {
$this->options['maximum_fraction_digits'] = $maximum_fraction_digits;
return $this;
}