Posts by GilmarGNJ • 1 point
1 post
-
-4
votes5
answers80372
viewsA: How to "round" a float in Python?
You can use the round() function, which gets the number to be rounded and the number of decimal places you want to round to: >>> 0.1+0.2 0.300000000000000004 >>> # round com duas…