Re: Why Round[5/2]=2?
- To: mathgroup at smc.vnet.net
- Subject: [mg17485] Re: Why Round[5/2]=2?
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Mon, 10 May 1999 01:44:25 -0400
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <7h4j9n$ei9@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The answer is correct! The on-line documentation says: Round rounds numbers of the form x.5 toward the nearest even integer Xing Jing Li wrote: > > While I am working on the exercises on the book _Power Programming > with Mathematica_ I noticed that Round[5/2] gave me 2. It is obviously > wrong. But how could this happen? I am using Mathematica 3.0.1 on a > Macintosh. I also tried the command"Round[5/2]" on other Macintoshes > and PCs and all them gave me 2. Is this some kind bug? Other numbers I > tried gave me the answers I expected. > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. phone 413 549-1020 (H) Univ. of Massachusetts 413 545-2859 (W) Amherst, MA 01003-4515