[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.
- Re: operation of 'round' function, (continued)
- Message not available
- Re: operation of 'round' function, Deepak Goel, 2002/02/07
- Re: operation of 'round' function, David Masterson, 2002/02/07
- Re: operation of 'round' function, Deepak Goel, 2002/02/08
- Re: operation of 'round' function. Why does it matter?, Alan Mackenzie, 2002/02/09
- Re: operation of 'round' function. Why does it matter?, David Kastrup, 2002/02/09
- Re: operation of 'round' function. Why does it matter?, Alan Mackenzie, 2002/02/10
- Re: operation of 'round' function. Why does it matter?, David Kastrup, 2002/02/11
- Re: operation of 'round' function. Why does it matter?, Eli Zaretskii, 2002/02/12
- Re: operation of 'round' function, David Kastrup, 2002/02/07
- Re: operation of 'round' function,
Francesco Potorti` <=
Re: operation of 'round' function, maierh, 2002/02/07
Re: operation of 'round' function, Andreas Schwab, 2002/02/08
Message not available