On Thu, 29 Mar 2001 19:24:21 +0200 (CEST), Tels wrote:

>And then, if we have BigFloat, we need a way to specify rounding and
>precision. Otherwise 1/3 eats up all memory or provides limits ;o)

Er... may I suggest ratio's as a data format? It won't work for sqrt(2)
or PI, but it can easily store 1/3 as two (long) integers. You can
postpone doing integer divisions until you need a result, at which time
you can reorder calculations between * and /, so

        (2/3)*9 

will return exactly 6.

-- 
        Bart.

Reply via email to