You are here

public function LegacyNumberFormatter::setMaximumFractionDigits in Commerce Core 8.2

Sets the maximum number of fraction digits.

Parameters

int $maximum_fraction_digits: The maximum number of fraction digits.

Return value

$this

File

modules/price/src/LegacyNumberFormatter.php, line 117

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\commerce_price

Code

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