how to get a float without so many numbers in python code example Example: how to get decimal part of a double in python number_dec = str(number-int(number))[1:]