NAN constant dev

Thu, 20 Jul 2023 23:24:28 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 20 Jul 2023 23:24:28 +0300
branch
dev
changeset 32
e3cfc4917ee7
parent 31
50a77e4efcbb
child 33
75d65fa74eba

NAN constant

src/types.rs file | annotate | diff | comparison | revisions
--- a/src/types.rs	Thu Jul 20 14:51:38 2023 +0300
+++ b/src/types.rs	Thu Jul 20 23:24:28 2023 +0300
@@ -84,6 +84,7 @@
     const SQRT_2 : Self;
     const INFINITY : Self;
     const NEG_INFINITY : Self;
+    const NAN : Self;
     const FRAC_2_SQRT_PI : Self;
 }
 
@@ -133,6 +134,7 @@
     const SQRT_2 : Self = std::f64::consts::SQRT_2;
     const INFINITY : Self = std::f64::INFINITY;
     const NEG_INFINITY : Self = std::f64::NEG_INFINITY;
+    const NAN : Self = std::f64::NAN;
     const FRAC_2_SQRT_PI : Self = std::f64::consts::FRAC_2_SQRT_PI;
 }
 
@@ -150,6 +152,7 @@
     const SQRT_2 : Self = std::f32::consts::SQRT_2;
     const INFINITY : Self = std::f32::INFINITY;
     const NEG_INFINITY : Self = std::f32::NEG_INFINITY;
+    const NAN : Self = std::f32::NAN;
     const FRAC_2_SQRT_PI : Self = std::f32::consts::FRAC_2_SQRT_PI;
 }
 

mercurial