nan
>>> nan2()
nan
+ >>> nan3()
+ nan
>>> float_nan
nan
inf
>>> infp2() == float('inf')
True
+ >>> infp3()
+ inf
+ >>> infp3() == float('inf')
+ True
>>> float_infp
inf
>>> float_infp == float('inf')
-inf
>>> infn2() == float('-inf')
True
+ >>> infn3()
+ -inf
+ >>> infn3() == float('-inf')
+ True
>>> float_infn
-inf
>>> float_infn == float('-inf')
f = float('nan')
return f
+def nan3():
+ cdef float f
+ f = FLOAT_NAN
+ return f
+
def infp1():
cdef double f
f = FLOAT_INFP
f = float('+inf')
return f
+def infp3():
+ cdef float f
+ f = FLOAT_INFP
+ return f
+
def infn1():
cdef double f
f = FLOAT_INFN
f = float('-inf')
return f
+def infn3():
+ cdef float f
+ f = FLOAT_INFN
+ return f
+