strip decimal python code example Example: remove decimal python # Truncates a double to an int i = 10.0 k = int(i) # i = 10.0 # k = 10