[Openmcl-devel] Error in rational -> float conversion
steve_nunez at yahoo.com
Sun Sep 19 06:05:52 PDT 2021
I just posted an issue regarding what looks like a bug in rational->float conversion, and I'm hoping someone here can try this on 1.12 (preferably on MS Windows), or perhaps provide some insight as to what might be going on here for a quick fix.
"Version 1.11.8 (v1.11.8-2-gd411e378) WindowsX8664"
CL-USER> (float 41107100000541273/100000000000)
Hmm. If you work out the decimal points, the float is: 411071.00000541273, that's a long way from .03. Maybe coerce? Nope, that's even worse:
CL-USER> (coerce 41107100000541273/100000000000 'double-float)
Any ideas? That's not a small rounding error.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel