[racket] Rounding

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sun Mar 17 17:31:54 EDT 2013

Racket is not Scheme. Please do not let our decisions influence your
opinion of other languages. Go try Scheme for real.

Robby



On Sat, Mar 16, 2013 at 10:47 PM, Eric Nadeau <nado18 at gmail.com> wrote:

>
> The point of rounding is coming up with the best possible integer
> approximation for a decimal and this nearest even number rule does not
> qualify. This "logic" was used by my grandparents' generation because odd
> numbers were seen as less pure than even ones.
>
> I'm ditching Scheme altogether based on this, but thanks all for the good
> explanations, it can be confirmed by running the following (I thought it
> was only a fluke with 0.5):
>
> (round 0.5) (round 1.5) (round 2.5) (round 3.5)
>
> On 16-Mar-2013, at 20:31, Nadeem Abdul Hamid wrote:
>
> >> Since when is round 0.5 not giving 1?!
> >
> > http://en.wikipedia.org/wiki/Rounding#Round_half_to_even
> >
> > --- nadeem
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130317/741f0041/attachment.html>

Posted on the users mailing list.