You are here

public function Currency::getFractionDigits in Commerce Core 8.2

Gets the number of fraction digits.

Used when rounding or formatting an amount for display.

Return value

int The number of fraction digits.

Overrides CurrencyInterface::getFractionDigits

File

modules/price/src/Entity/Currency.php, line 163

Class

Currency
Defines the currency entity class.

Namespace

Drupal\commerce_price\Entity

Code

public function getFractionDigits() {
  return $this->fractionDigits;
}