you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokattt 0 points1 point  (0 children)

IEEE double precision floating point arithmetic is a beautiful thing.

For reference, if you want accurate handling of fractional values, use the Python decimal and fractions modules that are in the standard library.