Python 2 Десятичные места
print(format(432.456, ".2f"))
>> 432.45
print(format(321,".2f"))
>> 321.00
Wild Weasel
print(format(432.456, ".2f"))
>> 432.45
print(format(321,".2f"))
>> 321.00
number_dec = str(number-int(number))[1:]
express 'rewrite' the number 3.1416 to two significant figures.
express rewrite the number 8.998 to two significant figures.