After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725319 - Calculation of large factorials give wrong answer
Calculation of large factorials give wrong answer
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on: 698400
Blocks:
 
 
Reported: 2014-02-27 13:57 UTC by elita astrid angelina lobo
Modified: 2014-12-22 20:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description elita astrid angelina lobo 2014-02-27 13:57:51 UTC
Steps to reproduce the bug:

Enter 1000! or try calculating factorial of any larger no, the answer is 0.

This bug can be resolved by removing an if condition which checks overflow but I am not quite sure about the substitute condition for overflow.
Comment 1 PioneerAxon 2014-12-22 20:41:09 UTC
Elita,

Thank you for the report.

The issue has been fixed in master branch. The Calculator will now generate correct answer or show "Overflow error".

The back-end now uses a dconf-tweakable precision setting. You can increase the precision (at the cost of computing time) if required.

Reference commit : https://git.gnome.org/browse/gnome-calculator/commit/?id=0e863eeb121d670d8f5266a82b6152e98b2428ea

Hope this helps.. :)