kuroko/test/testIntFloatCompare.krk

15 lines
244 B
Python
Raw Normal View History

import math
print(1 < 1.2)
print(1 > 1.2)
print(1 < math.inf)
print(1 > math.inf)
print(1 < math.nan)
print(1 > math.nan)
print('--')
print(1.2 > 1)
print(1.2 < 1)
print(math.inf > 1)
print(math.inf < 1)
print(math.nan > 1)
print(math.nan < 1)