/** * Returns the currency default fraction decimals. * * @return int the fraction digits. */ public function getDefaultFractionDecimals() { return NostoCurrencyInfo::getFractionDecimals($this->code); }
/** * 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); }