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.
- PDD 4 internal data types, version 1.1 Dan Sugalski
- Re: PDD 4 internal data types, version 1.1 Paolo Molaro
- Re: PDD 4 internal data types, version 1.1 Dan Sugalski
- PDD 4 internal data types, version 1.1 Tels
- Re: PDD 4 internal data types, version 1.1 Bart Lateur
- Re: PDD 4 internal data types, version 1.1 David L. Nicol
- Re: PDD 4 internal data types, version 1.1 Andy Dougherty
- Re: PDD 4 internal data types, version 1.1 Dan Sugalski
