GeistHaus
log in · sign up

Rounding floating point numbers with Python

tannerdolby.com

Rounding numbers in Python is quite common. There might be a situation where values must only be rounded to 3 decimals or some arbitrary number. Using the built-in function round() is handy but changes the original value.

0 pages link to this URL

No pages have linked to this URL yet.