Searched refs:trailingDigit (Results 1 – 3 of 3) sorted by relevance
770 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 …]
772 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 …]
671 int8_t trailingDigit = getDigitPos(position); in roundToMagnitude() local673 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 …]