[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
We have moved to a new Sailfish OS Forum. Please start new discussions there.
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 ;)
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2014-06-27 19:14:14 +0200
Seen: 516 times
Last updated: Jun 28 '14
[Fixed in 1.0.3.8] Crash when linking contacts? [not relevant]
Time slider usage in video player of Gallery app causes the app to hang [duplicate]
QAudioOutput isn't integrated with system volume and libresource like QMediaPlayer
Bug: E-Mail synchronization does not work as configured [released]
Word prediction should be always turned off when entering passwords in Android apps [released]
Don't enforce focus to textfield [answered]
[Implemented in 1.0.3.8] Email: Honour Reply-To header [answered]
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 +0200 )editCorrect behaviour would be to implode. Or at least, do a factory reset.
mholo65 ( 2014-06-27 21:06:53 +0200 )editIn R, 1/0 gives also ∞ (and -1/0 -∞). I think there is a bug in R...
Vivien ( 2014-06-28 00:36:44 +0200 )editIt's likely a bug, but they can't fix it because of bugwarts compatibility.
PyroDevil ( 2014-06-28 12:34:37 +0200 )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 +0200 )edit