pub fn to_integer(&self) -> Option<isize> {
        match &self.value {
            NumValue::Rational(s) => Some(s.to_integer()),
            NumValue::BigRational(s) => isize::try_from(s.to_integer()).ok(),
            NumValue::Float(s) => Some(s.ceil() as isize),
        }
    }
/// Converts to an integer, rounding towards zero.
///
/// An integer that is too big to fit in an isize returns `None`.
Converts to an integer, rounding towards zero.
An integer that is too big to fit in an isize returns `None`.
Converts to an integer rounding towards zero . An integer that is too big to fit in an isize returns ` None ` .
pub fn to_integer(&self) -> Option<isize> {
        match &self.value {
            NumValue::Rational(s) => Some(s.to_integer()),
            NumValue::BigRational(s) => isize::try_from(s.to_integer()).ok(),
            NumValue::Float(s) => Some(s.ceil() as isize),
        }
    }
pub fn to_integer ( & self ) -> Option < isize > { match & self . value { NumValue :: Rational ( s ) => Some ( s . to_integer ( ) ) , NumValue :: BigRational ( s ) => isize :: try_from ( s . to_integer ( ) ) . ok ( ) , NumValue :: Float ( s ) => Some ( s . ceil ( ) as isize ) , } }
Converts to an integer, rounding towards zero.
Converts to an integer rounding towards zero .
&self
&self