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
1 2 3 4
F False I True Fmod False Imod False