Answers for "python restrict to 2 decimals"

5

how do i limit decimals to only two decimals in python

answer = str(round(answer, 2))
Posted by: Guest on May-24-2020
0

python get numbers after decimal point

number_dec = str(number-int(number))[1:]
Posted by: Guest on October-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language