A colleague forwarded this set of comments/questions to me
and I am forwarding to the REBOL list...

> When performing mathematical calculations, 
> I've come across some interesting results, particularly with the modular
> division ( // ) operation.
> 
> For example, if I perform 
> >> e: 1.22 // 0.01 
> in REBOL, e will equal 9.99999999999992E-3. 
> Although the answer is 0.01, or 1E-2, I can type 
> >> e = 0.01 and true 
> 
> will be returned.
> 
> While accepting 9.99999999999992E-3 is sufficient in most cases, 
> I may be in trouble if I wanted to convert the value of e to a string, for
> example. 
> Is there anyway to make this calculation return display 1E-2 exactly?
> 
> I am using REBOL/Core Version 2.3.0.3.1.
> 
> Thanx,
> -C. Hampton

Reply via email to