You are here

public function CurrencyInterface::getFractionDigits in Price 3.x

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

Code

public function getFractionDigits();