Why Round[5/2]=2?
- To: mathgroup at smc.vnet.net
- Subject: [mg17469] Why Round[5/2]=2?
- From: xingjing at calvin.math.vt.edu (Xing Jing Li)
- Date: Sun, 9 May 1999 04:44:02 -0400
- Organization: The Math Forum
- Sender: owner-wri-mathgroup at wolfram.com
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. Can some one tell me what is going on? Thanks, Xing Jing Li