[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: operation of 'round' function. Why does it matter?
From: |
Alan Mackenzie |
Subject: |
Re: operation of 'round' function. Why does it matter? |
Date: |
9 Feb 2002 13:24:14 +0100 |
Date: |
Sat, 9 Feb 2002 08:10:44 +0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) |
Deepak Goel <deego@glue.umd.edu> wrote on 08 Feb 2002 11:28:38 -0500:
>>
>> So, if it is 2.5, you round to 2, but, if it is 3.5, you round to 4??
> well, yes. that's the convention i have seen more than any other.
> if you have a large data of numbers to be rounded, this method ensures
> that you do not change the mean..
Of course you change the mean. What you mean, I think, is that the mean
of the change of the mean is zero.
Why on earth does it matter? Any time you're doing rounding, truncating,
flooring, or whatever, you're fudging the result and loosing accuracy.
In the few cases in which it does matter, the programmer should know what
she is doing.
> Deepak
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
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 <=
- 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`, 2002/02/07
Re: operation of 'round' function, maierh, 2002/02/07
Re: operation of 'round' function, Andreas Schwab, 2002/02/08