You are here

public function LegacyNumberFormatter::setMinimumFractionDigits in Commerce Core 8.2

Sets the minimum number of fraction digits.

Parameters

int $minimum_fraction_digits: The minimum number of fraction digits.

Return value

$this

File

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

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\commerce_price

Code

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