]> gitweb.factorcode.org Git - factor.git/commitdiff
remove redundant nan? word
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Dec 2008 04:03:10 +0000 (22:03 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Dec 2008 04:03:10 +0000 (22:03 -0600)
extra/math/floating-point/floating-point-tests.factor
extra/math/floating-point/floating-point.factor

index 129956331bce51358bf44252ec0b80d2b2572495..9e5b5c67aa91bbb9c9b0ea9c7872f4588bfc4838 100644 (file)
@@ -13,5 +13,3 @@ IN: math.floating-point.tests
 [ f ] [ 10. infinity? ] unit-test
 [ f ] [ -10. infinity? ] unit-test
 [ f ] [ 0. infinity? ] unit-test
-
-[ t ] [ 0/0. nan? ] unit-test
index 02fcd01e11ee4156658a5a923329500df703281d..522f149bc1c7dbfd92fd814a6ed3091cc3f7fc83 100644 (file)
@@ -38,13 +38,6 @@ IN: math.floating-point
         11 [ bl ] times print
     ] tri ;
 
-: nan? ( double -- ? )
-    double>bits
-    {
-        [ (double-exponent-bits) 11 on-bits = ]
-        [ (double-mantissa-bits) 0 > ]
-    } 1&& ;
-
 : infinity? ( double -- ? )
     double>bits
     {