Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java770 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
772 … if (position <= 0 && !isApproximate && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
788 if (nickel && trailingDigit != 2 && trailingDigit != 7) { in roundToMagnitude()
790 if (trailingDigit < 2) { in roundToMagnitude()
793 } else if (trailingDigit < 5) { in roundToMagnitude()
796 } else if (trailingDigit < 7) { 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()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java772 byte trailingDigit = getDigitPos(position); in roundToMagnitude()
774 … if (position <= 0 && !isApproximate && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
790 if (nickel && trailingDigit != 2 && trailingDigit != 7) { in roundToMagnitude()
792 if (trailingDigit < 2) { in roundToMagnitude()
795 } else if (trailingDigit < 5) { in roundToMagnitude()
798 } else if (trailingDigit < 7) { 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()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp671 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude() local
673 if (position <= 0 && !isApproximate && (!nickel || trailingDigit == 0 || trailingDigit == 5)) { in roundToMagnitude()
689 if (nickel && trailingDigit != 2 && trailingDigit != 7) { in roundToMagnitude()
691 if (trailingDigit < 2) { in roundToMagnitude()
694 } else if (trailingDigit < 5) { in roundToMagnitude()
697 } else if (trailingDigit < 7) { 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()
[all …]