public function CurrencyInterface::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.
1 method overrides CurrencyInterface::getFractionDigits()
- Currency::getFractionDigits in modules/
price/ src/ Entity/ Currency.php - Gets the number of fraction digits.
File
- modules/
price/ src/ Entity/ CurrencyInterface.php, line 95
Class
- CurrencyInterface
- Defines the interface for currencies.
Namespace
Drupal\commerce_price\EntityCode
public function getFractionDigits();