Rounding error
Matthew
matthewm at ihug.co.nz
Wed Apr 4 17:58:05 EDT 2001
Hi,
I'm calculating a bunch of co-ordinates as below. I'm using
Round(<coord>,2) but as you can see rounding errors are happening...
Digit: 1 = [123.53, 335.29000000000002, 358.81999999999999,
358.81999999999999, 382.35000000000002, 405.88, 429.41000000000003,
452.94, 476.47000000000003, 500.0]
How do I overcome this? I'm using ActivePython Build203.
Thanks for any help. matthew
More information about the Python-list
mailing list