Round a decimal number

Raymond Hettinger vze4rx4y at verizon.net
Thu May 29 16:41:12 EDT 2003


"Manuel"
> How I can round a decimal number?
> Example: 1.4463784692425  to 1.45


>>> round(1.4463784692425, 2)
1.45


Raymond Hettinger






More information about the Python-list mailing list