Re: Bug in srfi-48?
"Arthur A. Gleckler" <[email protected]> Thu, 12 Oct 2017 12:07:17 -0700
| Newsgroups | gmane.lisp.scheme.srfi.srfi-48 |
|---|---|
| Message-ID | <CALnw4LKSJbvdUV_OOvmOCa_g8+FXsvEox5LwDPXigC6ChDnt5A@mail.gmail.com> |
--001a114fdde2e9b10c055b5e4082 Content-Type: text/plain; charset="UTF-8" X-SL-Modified: truncated_text On Thu, Oct 12, 2017 at 6:04 AM, Donald Allen <[email protected]> wrote: > Thanks for the quick response. From your description of the patch, it > sounds like you addressed the error that occurs using Gambit. But did > you also have a look at the odd rounding behavior I reported in my > first message? > earlier: 3> (/ (round (* 1.997554209949891 100)) 100) > 2. I get the same result with MIT Scheme. I must be missing something. Why do you consider it wrong? According to R7RS (and probably earlier versions of the standard),"round returns the closest integer to x, rounding to even when x is halfway between two integers." --001a114fdde2e9b10c055b5e4082 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SL-Modified: truncated_html <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T= hu, Oct 12, 2017 at 6:04 AM, Donald Allen <span dir=3D"ltr"><<a href=3D"= mailto:[email protected]" target=3D"_blank">[email protected]</a>= ></span> wrote:<br><div>=C2=A0</div><blockquote class=3D"gmail_quote" st= yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd= ing-left:1ex"> Thanks for the quick response. From your description of the patch, it<br> sounds like you addressed the error that occurs using Gambit. But did<br> you also have a look at the odd rounding behavior I reported in my<br> first message?<br></blockquote><div><br></div><div>earlier:</div><div><br><= /div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo= rder-left:1px solid rgb(204,204,204);padding-left:1ex"><span style=3D"font-= size:12.8px">3> (/ (round (* 1.997554209949891 100)) 100)<br></span><spa= n style=3D"font-size:12.8px">2.</span></blockquote><div><br></div><div>I ge= t the same result with MIT Scheme.=C2=A0 I must be missing something.=C2=A0= Why do you consider it wrong?=C2=A0 According to R7RS (and probably earlie= r versions of the standard),"round returns the closest integer to x, r= ounding to even when x is halfway between two integers."<span style=3D= "font-size:10pt;font-family:CMR10">=C2=A0</span></div> =09=09 =09 =09 </div></div></div> --001a114fdde2e9b10c055b5e4082--