GNOME Bugzilla – Bug 702817
ln (e^x) : Overflow: the result couldn't be calculated (for x >= 3)
Last modified: 2014-12-22 20:36:12 UTC
Reported by Rob on the mailing list [1]. When entered equation in the form of ln (e^x) where x >= 3, Calculator gives following error : "Overflow: the result couldn't be calculated". Expected result is value of x. [1] : https://mail.gnome.org/archives/gcalctool-list/2013-June/msg00000.html
Created attachment 270343 [details] [review] patch Hi, I've fixed this bug. When using doubles instead of floats, the precision is high enough to not cause an overflow. Btw: overflows are almost always caused by adding a really small number, such as 0.9e-99 :)
Review of attachment 270343 [details] [review]: Daniel, Thanks for the patch. :) It works fine for any number till 55. I'm keeping the bug still open.
The issue has been fixed. Reference commit : https://git.gnome.org/browse/gnome-calculator/commit/?id=0e863eeb121d670d8f5266a82b6152e98b2428ea