MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: positive numbers
  • Next by Date: Re: Re: LogLog scales with contourplots
  • Previous by thread: Re: positive numbers
  • Next by thread: Re: Why Round[5/2]=2?