Home
last modified time | relevance | path

Searched refs:conversionRate (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DConversionRates.java190 private final String conversionRate; field in ConversionRates.ConversionRateInfo
193 …public ConversionRateInfo(String simpleUnit, String target, String conversionRate, String offset) { in ConversionRateInfo() argument
196 this.conversionRate = conversionRate; in ConversionRateInfo()
232 return conversionRate; in getConversionRate()
DUnitConverter.java15 private BigDecimal conversionRate; field in UnitConverter
36 this.conversionRate = sourceToBase.divide(targetToBase).getConversionRate(); in UnitConverter()
38 this.conversionRate = sourceToBase.multiply(targetToBase).getConversionRate(); in UnitConverter()
86 return inputValue.multiply(this.conversionRate).add(offset); in convert()
90 return inputValue.subtract(offset).divide(this.conversionRate, DECIMAL128); in convertInverse()
314 return "UnitConverter [conversionRate=" + conversionRate + ", offset=" + offset + "]"; in toString()
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DConversionRates.java200 private final String conversionRate; field in ConversionRates.ConversionRateInfo
203 …public ConversionRateInfo(String simpleUnit, String target, String conversionRate, String offset) { in ConversionRateInfo() argument
206 this.conversionRate = conversionRate; in ConversionRateInfo()
242 return conversionRate; in getConversionRate()
DUnitConverter.java19 private BigDecimal conversionRate; field in UnitConverter
40 this.conversionRate = sourceToBase.divide(targetToBase).getConversionRate(); in UnitConverter()
42 this.conversionRate = sourceToBase.multiply(targetToBase).getConversionRate(); in UnitConverter()
90 return inputValue.multiply(this.conversionRate).add(offset); in convert()
94 return inputValue.subtract(offset).divide(this.conversionRate, DECIMAL128); in convertInverse()
321 return "UnitConverter [conversionRate=" + conversionRate + ", offset=" + offset + "]"; in toString()
/external/icu/icu4c/source/i18n/
Dunits_converter.cpp276 void loadConversionRate(ConversionRate &conversionRate, const MeasureUnitImpl &source, in loadConversionRate() argument
300 conversionRate.factorNum = finalFactor.factorNum; in loadConversionRate()
301 conversionRate.factorDen = finalFactor.factorDen; in loadConversionRate()
305 conversionRate.sourceOffset = in loadConversionRate()
307 conversionRate.targetOffset = in loadConversionRate()
311 conversionRate.reciprocal = unitsState == Convertibility::RECIPROCAL; in loadConversionRate()