Ejemplo n.º 1
0
 /**
  * Returns the currency default fraction decimals.
  *
  * @return int the fraction digits.
  */
 public function getDefaultFractionDecimals()
 {
     return NostoCurrencyInfo::getFractionDecimals($this->code);
 }
Ejemplo n.º 2
0
 /**
  * Returns how many fraction decimals should be used for prices of given currency.
  *
  * @param NostoCurrencyCode $currency the currency.
  * @return int the decimals
  */
 private static function getCurrencyFractionDecimals(NostoCurrencyCode $currency)
 {
     return NostoCurrencyInfo::getFractionDecimals($currency);
 }