[Bug] Division by zero is infinity on calculator
Hi, I just tested the calculator on my Jolla phone and it returns infinity ∞ when entering 1/0, and that is wrong... really.
Please fix this.
Cheers
PyroDevil
Hi, I just tested the calculator on my Jolla phone and it returns infinity ∞ when entering 1/0, and that is wrong... really.
Please fix this.
Cheers
PyroDevil
No way to deliver 1000 000 Jolla's to 0 customers, so this really needs a fix soon!
From wiki:
In computing, a program error may result from an attempt to divide by zero. Depending on the programming environment and the type of number (e.g. floating point, integer) being divided by zero, it may generate positive or negative infinity by the IEEE 754 floating point standard, generate an exception, generate an error message, cause the program to terminate, or result in a special not-a-number value.
I suggest a non-number answer "unlike".
1 Jolla (a leftover) is accepted to be delivered to 0 customers - however, it doesn't bring us infinite amount of phones, neither infinite amount of customers ;)
Asked: 2014-06-27 19:14:14 +0300
Seen: 644 times
Last updated: Jun 28 '14
Hum. The limit of N/0 is always infinity for N != 0 (positive or negative acording to the direction in which you approach 0). I think this is what they meant by this result?
DaTa ( 2014-06-27 20:42:09 +0300 )editCorrect behaviour would be to implode. Or at least, do a factory reset.
mholo65 ( 2014-06-27 21:06:53 +0300 )editIn R, 1/0 gives also ∞ (and -1/0 -∞). I think there is a bug in R...
Vivien ( 2014-06-28 00:36:44 +0300 )editIt's likely a bug, but they can't fix it because of bugwarts compatibility.
PyroDevil ( 2014-06-28 12:34:37 +0300 )editnote: 0/0 returns NaN.
side note: any error message could be shown as is. instead of witty (not anymore) things like 'Oops..'
User ( 2014-06-29 10:15:36 +0300 )edit