get digits after comma code example Example: how to get number after decimal point decnm = "0"+str(number-int(number))[1:] float(decnm)