iphone calculator bug in 1.1.4: division by zero

Yesterday i was trying to give another confirmation to my daugther that division by zero was not possible by showing her that it would give an error message.

To my surprise the calculator of my 1.1.4 iphone showed a result of zero for any division by zero. On 1.1.2 firmware it said "error"

Can anyone else confirm that ?

macpro

Posted on Mar 12, 2008 1:42 AM

Reply
4 replies

Mar 12, 2008 7:58 AM in response to Simonjhutton

Simonjhutton wrote:
Can confirm that on 1.1.4 it does not display an error but shows the answer as 0 which is wrong. cannot confirm on any other version as i haven't tested it.



Of course the other answer is that a number divided by 0 will result in "Infinity" which is what the Mac OS built-in calculator displays. It also displays -Infinity if you try dividing a negative number by 0

Mar 12, 2008 8:03 AM in response to romad

Integer division by zero is usually handled differently from floating point since there is no integer representation for the result. Some processors generate an exception when an attempt is made to divide an integer by zero, although others will simply continue and generate an incorrect result for the division. (That result is often zero.) - Wiki.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iphone calculator bug in 1.1.4: division by zero

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.