Wednesday, March 27, 2019

python - Limiting floats to two decimal points

I want a to be rounded to 13.95.



>>> a
13.949999999999999
>>> round(a, 2)
13.949999999999999


The round function does not work the way I expected.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...