[REBOL] Re: Decimal accuracy
From: joel::neely::fedex::com at: 11-Jan-2003 10:12
Hi, Sunanda,
[SunandaDH--aol--com] wrote:
> Chatz:
> > I missing something, or does REBOL just decide that, once you
> > reach a certain value, accuracy is a moot point?
>
> I think you are missing the spec for decimal! From the Core manual:
>
> <<The decimal! data type includes 64-bit standard IEEE floating
> point numbers. They are distinguished from integer numbers by
> a decimal point.
> [snip] Decimal numbers span from 2.2250738585072e-308 up to
> 1.7976931348623e+308 and can contain up to 15 digits of
> precision.>>
>
> ... As far as I know, there is no precise spec for how Rebol
> handles that rounding.
>
IIRC the IEEE Standard (754) itself addresses rounding. A large
collection of related reference links can be found at
http://cch.loria.fr/documentation/IEEE754/
-jn-