public function CurrencyInterface::getFractionDigits in Price 2.x
Same name and namespace in other branches
- 8 src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::getFractionDigits()
- 3.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::getFractionDigits()
- 2.0.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::getFractionDigits()
- 3.0.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::getFractionDigits()
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 src/
Entity/ Currency.php - Gets the number of fraction digits.
File
- src/
Entity/ CurrencyInterface.php, line 95
Class
- CurrencyInterface
- Defines the interface for currencies.
Namespace
Drupal\price\EntityCode
public function getFractionDigits();