pub fn is_integer(&self) -> bool {
        match &self.value {
            NumValue::Rational(s) => s.is_integer(),
            NumValue::BigRational(s) => s.is_integer(),
            NumValue::Float(s) => {
                // TODO: A bigger epsilon might be needed?
                (s.round() - s).abs() <= std::f64::EPSILON
            }
        }
    }
/// Returns true if the number is an integer.
Returns true if the number is an integer.
Returns true if the number is an integer .
pub fn is_integer(&self) -> bool {
        match &self.value {
            NumValue::Rational(s) => s.is_integer(),
            NumValue::BigRational(s) => s.is_integer(),
            NumValue::Float(s) => {
                // TODO: A bigger epsilon might be needed?
                (s.round() - s).abs() <= std::f64::EPSILON
            }
        }
    }
pub fn is_integer ( & self ) -> bool { match & self . value { NumValue :: Rational ( s ) => s . is_integer ( ) , NumValue :: BigRational ( s ) => s . is_integer ( ) , NumValue :: Float ( s ) => { // TODO: A bigger epsilon might be needed? ( s . round ( ) - s ) . abs ( ) <= std :: f64 :: EPSILON } } }
Returns true if the number is an integer.
Returns true if the number is an integer .
&self
&self