[REBOL] Re: Arithmetic precision
From: gmassar::dreamsoft::com at: 2-Feb-2001 10:20
Arithmetic precision in REBOL is only 64 bits long including the exponent
for a decimal! value according to some IEEE standard. I think REXX relies
heavily on so called Math of numbers. For instance, most of divisions have
some repetition in the decimal part. E.g., in your case,
1000000001 / 71 = 14084507.05633802816901408450704225352112676'
The quote mark at the end indicates the repetition. REBOL code below will
produce the precision as long as 250 digits.
>> S: "14084507."
>> R: "05633802816901408450704225352112676"
>> loop 7 [S: join S R] print S
Actually, it is 253 digits long. Compare the result against REXX result
below. That's all I can help you. I majored Math some 35 years ago and I
hardly remembered what I learned.