math round float down to int code example Example: how to round a number down in python >>> import math >>> math.floor(3.9) # round down 3