Contact: aviboots(AT)netvision.net.il
43,909 questions
57,306 answers
573 users
d = 354.0 if d.is_integer(): print("float variable is an integer") else: print("float variable is not an integer") ''' run: float variable is an integer '''
import math d = 354.0 if d == math.floor(d): print("The float variable contains an integer") else: print("The float variable contains a floating point") ''' run: The float variable contains an integer '''