X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Ffloat.qh;h=b35494de44c0334f776d296f808565dd33af8be8;hb=bda29da7c83e61ef45bce71d9a0c53115cd56752;hp=fa4ff77b5a1fee7cfb7d6c4f8312999aec33e53c;hpb=c21b45f4213817b09099f99cc70e4f8d87f1713c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/float.qh b/qcsrc/lib/float.qh index fa4ff77b5..b35494de4 100644 --- a/qcsrc/lib/float.qh +++ b/qcsrc/lib/float.qh @@ -2,4 +2,5 @@ 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;