]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/float.qh
Merge branch 'master' into martin-t/globals
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / float.qh
index 946319e4439ab110f0b46de4b2b9af8c119c6a8a..b35494de44c0334f776d296f808565dd33af8be8 100644 (file)
@@ -1,3 +1,6 @@
 #pragma once
 
 const float FLOAT_MAX = 340282346638528859811704183484516925440.0f;
+const float FLOAT_EPSILON = 0.00000011920928955078125f;
+/// Always use `isnan` function to compare because `float x = FLOAT_NAN; x == x;` gives true
+const float FLOAT_NAN = 0.0 / 0.0;