public function Currency::getFractionDigits in Price 8
Same name and namespace in other branches
- 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
- 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
- 2.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
- 3.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
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
- src/
Entity/ Currency.php, line 160
Class
- Currency
- Defines the currency entity class.
Namespace
Drupal\price\EntityCode
public function getFractionDigits() {
return $this->fractionDigits;
}