Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Decimal accuracy

From: sunandadh:aol at: 11-Jan-2003 5:35

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.>> Your example is up beyond the 15 digit accuracy so rounding will occur. As far as I know, there is no precise spec for how Rebol handles that rounding. As far as I know, there is no native Rebol support for a number type that carries more digits of accuracy than decimal! Sunanda.