bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: operation of 'round' function


From: Francesco Potorti`
Subject: Re: operation of 'round' function
Date: 07 Feb 2002 18:26:30 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.90

deego@glue.umd.edu (Deepak Goel) writes:

   And in such cases, the 'standard' solution is indeed to round it to
   the nearest even integer...

As always, there is more than one standard, that's why standards are so
nice :-)

When using numbers for money, it is customary to round up in case of
tie.  Namely, this is the official standard for rounding numbers to be
converted from old European currencies to euros.

By the way, this is also the most commonly used rounding convention in
general, in my math experience.  Just to make it clear, a lot of
computer programs use `floor(x+0.5)' to round numbers.

The behaviour of round in emacs lisp should certainly be documented.
Maybe the current behaviour was not a wise choice just from the
beginning.  Since the current documentation says nothing about this
issue, we are in time to change it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]