From 4b935bf8ef27af15ec7a73f055c88dc71a55dbd6 Mon Sep 17 00:00:00 2001 From: Ary Borenszweig <aborenszweig@manas.com.ar> Date: Fri, 22 Aug 2014 18:30:33 -0300 Subject: [PATCH] Addef Float32::NAN and Float64::NAN --- src/float.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/float.cr b/src/float.cr index bdf924b268..5d32300b98 100644 --- a/src/float.cr +++ b/src/float.cr @@ -13,6 +13,7 @@ struct Float end struct Float32 + NAN = 0_f32 / 0_f32 MIN = -INFINITY MAX = INFINITY @@ -42,6 +43,7 @@ struct Float32 end struct Float64 + NAN = 0_f64 / 0_f64 MIN = -INFINITY MAX = INFINITY -- GitLab