[Bug 656] openmoko-calculator: division by zero not caught.

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Wed Jul 25 22:47:28 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=656





------- Additional Comments From rodolphe.ortalo at free.fr  2007-07-25 22:47 -------
BTW, FYI, the "NaN" or "inf" magic is the magic of IEEE floating point
arithmetic (simply by using "double"). See these refs (into glibc documentation)
for details:
http://www.gnu.org/software/libc/manual/html_node/Infinity-and-NaN.html#Infinity-and-NaN
http://www.gnu.org/software/libc/manual/html_node/FP-Exceptions.html#FP-Exceptions
However, that's not the most portable thing and maybe it behaves differently on
the Neo ARM and on the PC, we should only be comfronted to "inf" and not "NaN"
in fact. (Notice that: -1/0 = -inf or 1/0=inf on my PC.)
If you confirm you get the NaN indication, I'll update "update_display" to
detect these case and display something but then I'll need you again to double
check...




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list