You are here

public function LegacyNumberFormatter::setMaximumFractionDigits in Price 3.0.x

Same name and namespace in other branches
  1. 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setMaximumFractionDigits()
  2. 3.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\price

Code

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