/** * Returns the currency sub-unit. * * @return int the sub-unit. */ public function getFractionUnit() { return NostoCurrencyInfo::getFractionUnit($this->code); }
/** * Returns the currency fraction unit to use for converting prices, e.g. from euros to cents and vice versa. * * @param NostoCurrencyCode $currency the currency. * @return int the unit. */ private static function getCurrencyFractionUnit(NostoCurrencyCode $currency) { return NostoCurrencyInfo::getFractionUnit($currency); }