diff --git a/src/quantity/scalar/scalar.rs b/src/quantity/scalar/scalar.rs index e6a0d5a..0901c5f 100644 --- a/src/quantity/scalar/scalar.rs +++ b/src/quantity/scalar/scalar.rs @@ -184,7 +184,7 @@ impl Scalar { pub fn is_nan(&self) -> bool { match self { - Scalar::Float {..} => {false}, + Scalar::Float{ v } => {v.val.is_nan()}, Scalar::Rational {..} => {false} } }