You are here

public function Currency::getFractionDigits in Price 8

Same name and namespace in other branches
  1. 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
  2. 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
  3. 2.x src/Entity/Currency.php \Drupal\price\Entity\Currency::getFractionDigits()
  4. 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\Entity

Code

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