MathGroup Archive 2004

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

Search the Archive

RE: bug in IntegerPart ?


Dennis,

FullForm[(1.65 - 1.3)/0.007]
49.999999999999986`

FullForm[(1.65 - 1.3)/0.007]
50.`

Does that solve the puzzle?

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 



From: Dennis de Lang [mailto:lang.NO at science.uva.nl]
To: mathgroup at smc.vnet.net

Why does the following happen?

In[1]:= (1.65 - 1.3)/0.007
Out[1]:= 50.
In[2]:= IntegerPart[%]
Out[2]:= 49

but:

In[1]:= 0.35/0.007
Out[1]:= 50.
In[2]:= IntegerPart[%]
Out[2]:= 50

I'm puzzled....
- Dennis





  • Prev by Date: Re: Superscripts and subscripts in a text cell?
  • Next by Date: Re: bug in IntegerPart ?
  • Previous by thread: bug in IntegerPart ?
  • Next by thread: Re: bug in IntegerPart ?