[REBOL] Re: strange results with decimal!
From: moeller_thorsten:gmx at: 14-Jan-2002 12:47
Hi to all, responding to my question,
i really appreciated your explanations and samples you gave. Thanks for
I tried using Ladislav's round-function, but it seems that it doesn't help
me with my problem in a way i need.
i learned from your responses that the result of 1E-2 from a substraction of
1,99 and 1,98
>> 1,99 - 1,98
comes from the binary handling of this decimals an is the same as 0,01 and
will behave so in further operations. OK.
Is it possible to display the value of 0,01 correctly, without checking each
result and providing a corresponding string like >> if c = 0,01 [print
(same for values lower than 0,01 like 0,001)