Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: What am I missing here?
Replies: 5   Last Post: Jan 28, 2013 11:03 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 gautamsethi@gmail.com Posts: 27 Registered: 10/20/05
Re: What am I missing here?
Posted: Jan 26, 2013 10:17 PM
 Plain Text Reply

On Saturday, January 26, 2013 8:53:06 PM UTC-5, Roger Stafford wrote:
> Gautam Sethi <gautamsethi@gmail.com> wrote in message <e0cb6636-306e-4239-a3c6-be062decdcea@googlegroups.com>...
>

> > Folks, this is driving me nuts! Can someone explain what may be going on? ......
>
> - - - - - - - - -
>
> Welcome to the world of binary arithmetic, which is what your computer is using. It cannot get an exact result for .1, .2, .3, and .4, just as your decimal calculator cannot get an exact result for 1/3. All of your findings stem from that and the different roundings that are a consequence. Remember that the "==" and 'intersect' operations expect exact equality right down to the smallest bit.
>
>
>
> Roger Stafford

Sure, but why pick on poor .3? Why do I not see the same issue for .2 or .4 or the other numbers? And if this really the root of the issue, shouldn't the operator == be equivalent to <= eps or something similar?

Date Subject Author
1/26/13 gautamsethi@gmail.com
1/26/13 gautamsethi@gmail.com
1/26/13 Roger Stafford
1/26/13 gautamsethi@gmail.com
1/27/13 Roger Stafford
1/28/13 Steven Lord

© The Math Forum at NCTM 1994-2017. All Rights Reserved.