You are here

public function CurrencyInterface::setFractionDigits in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::setFractionDigits()
  2. 3.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::setFractionDigits()
  3. 2.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::setFractionDigits()
  4. 3.0.x src/Entity/CurrencyInterface.php \Drupal\price\Entity\CurrencyInterface::setFractionDigits()

Sets the number of fraction digits.

Parameters

int $fraction_digits: The number of fraction digits.

Return value

$this

1 method overrides CurrencyInterface::setFractionDigits()
Currency::setFractionDigits in src/Entity/Currency.php
Sets the number of fraction digits.

File

src/Entity/CurrencyInterface.php, line 105

Class

CurrencyInterface
Defines the interface for currencies.

Namespace

Drupal\price\Entity

Code

public function setFractionDigits($fraction_digits);