<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Double-float version works for me:<div><br></div><div><div>? (lisp-implementation-version)</div><div>"Version 1.11-r16812M  (DarwinX8664)"</div><div>? (coerce 41107100000541273/100000000000 'double-float)</div><div>411071.00000541273D0</div><div><br></div><div>But there is definitely something hinky going on with converting to single-float:</div><div><br></div><div><div>? (float 411071000005/100000000000)</div><div>4.11071</div><div>? (float 411071000006/100000000000)</div><div>4.11071</div><div>? (float 4110710000055/100000000000)</div><div>41.107098</div></div><div><br></div><div><br></div><div><div>On Sep 19, 2021, at 6:05 AM, Steven Nunez <<a href="mailto:steve_nunez@yahoo.com">steve_nunez@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi folks,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I just posted an issue regarding what looks like a <a href="https://github.com/Clozure/ccl/issues/390">bug in rational->float conversion</a>, 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.<br></div><div><br></div><div dir="ltr" data-setdir="false"><div><font face=""courier new", courier, monaco, monospace, sans-serif">CL-USER> (lisp-implementation-version)<br>"Version 1.11.8 (v1.11.8-2-gd411e378) WindowsX8664"<br>CL-USER> (float 41107100000541273/100000000000)<br>411071.03<br><br><font face=""Helvetica Neue", Helvetica, Arial, sans-serif">Hmm. If you work out the decimal points, the float is: 411071.00000541273, that's a long way from .03. Maybe <font face=""courier new", courier, monaco, monospace, sans-serif">coerce</font>? Nope, that's even worse:</font><br><br>CL-USER> (coerce 41107100000541273/100000000000 'double-float)<br>411071.03125D0</font><br><br></div><div dir="ltr" data-setdir="false">Any ideas? That's not a small rounding error.<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false">    Steve<br></div></div></div></div>_______________________________________________<br>Openmcl-devel mailing list<br><a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>https://lists.clozure.com/mailman/listinfo/openmcl-devel<br></blockquote></div><br></div></body></html>