Public bug reported: Binary package hint: gcalctool
gcalctool gives incorrect result for a squared negative number. The result should be a positive number. 1) lsb_release -rd Description: Ubuntu 8.04.2 Release: 8.04 2) apt-cache policy gcalctool gcalctool: Installed: 5.22.3-0ubuntu0.1 Candidate: 5.22.3-0ubuntu0.1 Version table: *** 5.22.3-0ubuntu0.1 0 500 http://us.archive.ubuntu.com hardy-updates/main Packages 100 /var/lib/dpkg/status 5.22.1-0ubuntu1 0 500 http://us.archive.ubuntu.com hardy/main Packages 3) when squaring the number -6, the expected result is 36 4) the incorrect result given is -36 Steps to reproduce: 1) change gcalctool to advanced, financial or scientific mode 2) click the number 6, you will see 6 displayed 3) click the +/- key, you will see -(6) displayed 4) click the x2 key, you will see -(6)^2 displayed 5) click the = key, you will see -36 displayed 6) the correct result should be 36 ProblemType: Bug Architecture: i386 Date: Tue Feb 10 22:18:49 2009 DistroRelease: Ubuntu 8.04 ExecutablePath: /usr/bin/gcalctool Package: gcalctool 5.22.3-0ubuntu0.1 PackageArchitecture: i386 ProcEnviron: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gcalctool Uname: Linux 2.6.24-23-generic i686 ** Affects: gcalctool (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug -- gcalctool squared negative number gives a negative result https://bugs.launchpad.net/bugs/327890 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs