kuroko/test/testIntFloatCompare.krk
2021-12-15 17:31:15 +09:00

15 lines
244 B
Python

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)