Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java769 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
779 if (leadingDigit < 5) { in roundToMagnitude()
781 } else if (leadingDigit > 5) { in roundToMagnitude()
794 if (leadingDigit == 0) { in roundToMagnitude()
802 } else if (leadingDigit == 4) { in roundToMagnitude()
809 } else if (leadingDigit == 5) { in roundToMagnitude()
816 } else if (leadingDigit == 9) { in roundToMagnitude()
824 } else if (leadingDigit < 5) { in roundToMagnitude()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java767 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
777 if (leadingDigit < 5) { in roundToMagnitude()
779 } else if (leadingDigit > 5) { in roundToMagnitude()
792 if (leadingDigit == 0) { in roundToMagnitude()
800 } else if (leadingDigit == 4) { in roundToMagnitude()
807 } else if (leadingDigit == 5) { in roundToMagnitude()
814 } else if (leadingDigit == 9) { in roundToMagnitude()
822 } else if (leadingDigit < 5) { in roundToMagnitude()
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp624 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude() local
634 if (leadingDigit < 5) { in roundToMagnitude()
636 } else if (leadingDigit > 5) { in roundToMagnitude()
649 if (leadingDigit == 0) { in roundToMagnitude()
657 } else if (leadingDigit == 4) { in roundToMagnitude()
664 } else if (leadingDigit == 5) { in roundToMagnitude()
671 } else if (leadingDigit == 9) { in roundToMagnitude()
679 } else if (leadingDigit < 5) { in roundToMagnitude()