[ create a new paste ] login | about

Link: http://codepad.org/AKFhELnq    [ raw code | output | fork ]

k4st - Python, pasted on Oct 11:
1
2
3
4
5
6
import math

print "F", math.floor(3.0 / 2.0) == math.ceil(3.0 / 2.0)
print "I", math.floor(3 / 2) == math.ceil(3 / 2)
print "Fmod", math.fmod(3.0, 2.0) == 0
print "Imod", (3 % 2) == 0


Output:
1
2
3
4
F False
I True
Fmod False
Imod False


Create a new paste based on this one


Comments: