getting decimal values using math in python code example Example: how to get number after decimal point decnm = "0"+str(number-int(number))[1:] float(decnm)