fn is_should_round_up(&self, n: usize) -> bool {
        if self.mant[n] == '5' && (n + 1) == self.mant.len() {
            n > 0 && ((self.mant[n-1] as u8 - '0' as u8) & 1) != 0
        } else {
            self.mant[n] >= '5'
        }
    }
/// shouldRoundUp reports if x should be rounded up
/// if shortened to n digits. n must be a valid index
/// for x.mant.
shouldRoundUp reports if x should be rounded up
if shortened to n digits. n must be a valid index
for x.mant.
shouldRoundUp reports if x should be rounded up if shortened to n digits . n must be a valid index for x . mant .
fn is_should_round_up(&self, n: usize) -> bool {
        if self.mant[n] == '5' && (n + 1) == self.mant.len() {
            n > 0 && ((self.mant[n-1] as u8 - '0' as u8) & 1) != 0
        } else {
            self.mant[n] >= '5'
        }
    }
fn is_should_round_up ( & self , n : usize ) -> bool { if self . mant [ n ] == '5' && ( n + 1 ) == self . mant . len ( ) { n > 0 && ( ( self . mant [ n - 1 ] as u8 - '0' as u8 ) & 1 ) != 0 } else { self . mant [ n ] >= '5' } }
shouldRoundUp reports if x should be rounded up
if shortened to n digits.
shouldRoundUp reports if x should be rounded up if shortened to n digits .
&self
n
usize
&self
n
usize