Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

crispyking

macrumors newbie
Original poster
Oct 27, 2011
27
0
The square root of 10 is 3.16227766

So can you fire up the default iPhone calculator (in standard portrait mode) and enter
3.16227766 x 3.16227766
It will equal 1. It shouldn't.

Try 10 / 3.16227766
Should be 3.16227766
Now multiply that result by 3.16227766
You'll get 10.

So, why didn't the first example work?
 
The same thing happens if you 9.99999999 * 1.1 it gives 11 in portrait and 10.999999989 in landscape.

The calculator app rounds off it there are more nines after what the screen can show. That is just rounding off coding I guess?

EDIT: I see what the TS is saying it should round off to 10 not 1, long day!
 
Last edited:
The same thing happens if you 9.99999999 * 1.1 it gives 11 in portrait and 10.999999989 in landscape.

The calculator app rounds off it there are more nines after what the screen can show. That is just rounding off coding I guess, I don't see this as a defect since in landscape it has more space to be more precise.

That doesn't really make sense. It should round it to 10 then in portrait mode not 1
 
The same thing happens if you 9.99999999 * 1.1 it gives 11 in portrait and 10.999999989 in landscape.

The calculator app rounds off it there are more nines after what the screen can show. That is just rounding off coding I guess, I don't see this as a defect since in landscape it has more space to be more precise.

Well 9.99999 repeating is actually 10, I believe, so maybe it just figures it's a repeating decimal.
 
The square root of 10 is 3.16227766

So can you fire up the default iPhone calculator (in standard portrait mode) and enter
3.16227766 x 3.16227766
It will equal 1. It shouldn't.

Try 10 / 3.16227766
Should be 3.16227766
Now multiply that result by 3.16227766
You'll get 10.

So, why didn't the first example work?

Did you report that to apple
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.