[snip]
I know of 4 ways to deal with this:
* Just live with your numbers to be inaccurate, compare with Deltas
and so. Fastest solution, most often used, least satisfactory if you
just need the precission.
* Have a "rationals" package. Most useful if you do not use irrational
things like sin(), PI or so, want precission, and don't run into the
big numbers problem. This kind of packages make out of numbers a
package that stores divisor and divident as seperate numbers. Clojure
comes to mind as a language that has this entities in the language
base package already.
* Have a "string numbers package" Useful if you have to deal with very
large numbers (64bit integer and beyond) and need precission to 1. The
computer calculates like a human with numbers represent as text.
Infinte size of numbers, very slow, always precise on integer.
* Have a package that splits every number into to floating points.
Where "your result" is represented by two limits, your result is
larger or equal than A and smaller or equal than B. Professional
calculations should work like this, speed is quite okay compared to
the naive approach.
[snip]