Home
last modified time | relevance | path

Searched refs:leadingDigit (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java779 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
803 } else if (leadingDigit < 5) { in roundToMagnitude()
806 } else if (leadingDigit > 5) { in roundToMagnitude()
822 if (leadingDigit == 0 && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
830 … } else if (leadingDigit == 4 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
838 … } else if (leadingDigit == 5 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
846 … } else if (leadingDigit == 9 && (!nickel || trailingDigit == 4 || trailingDigit == 9)) { in roundToMagnitude()
869 } else if (leadingDigit < 5) { in roundToMagnitude()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java781 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
805 } else if (leadingDigit < 5) { in roundToMagnitude()
808 } else if (leadingDigit > 5) { in roundToMagnitude()
824 if (leadingDigit == 0 && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
832 … } else if (leadingDigit == 4 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
840 … } else if (leadingDigit == 5 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
848 … } else if (leadingDigit == 9 && (!nickel || trailingDigit == 4 || trailingDigit == 9)) { in roundToMagnitude()
871 } else if (leadingDigit < 5) { in roundToMagnitude()
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp680 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude() local
704 } else if (leadingDigit < 5) { in roundToMagnitude()
707 } else if (leadingDigit > 5) { in roundToMagnitude()
723 if (leadingDigit == 0 && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
731 } else if (leadingDigit == 4 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
739 } else if (leadingDigit == 5 && (!nickel || trailingDigit == 2 || trailingDigit == 7)) { in roundToMagnitude()
747 } else if (leadingDigit == 9 && (!nickel || trailingDigit == 4 || trailingDigit == 9)) { in roundToMagnitude()
770 } else if (leadingDigit < 5) { in roundToMagnitude()