[BUG] asRational

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[BUG] asRational

Nicolas Cellier-3
Hello,
Float/Double asRational are bugged (for a very long time) in visualworks:

- converting Double to Fraction to Double loose bits...
  try these ones :

 (2**52+1.0d0/(2**55)) asRational asDouble - (2**52+1.0d0/(2**55)).
 (2**23+1.0e0/(2**26)) asRational asFloat - (2**23+1.0e0/(2**26)).

- Another bug is miss-handling of IEEE gradual underflow - try this :

 1.0d-313 asRational

I published a patch in package SYSBUG-asRational in Cincom public store
repository.