wrong results - negative numbers raised to power of two
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcalctool (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
type into the calculator
-1^2
Expected result: 1
Received result: -1
The bug applies to all negative numbers raised to any even number.
The bug is also present in Ubuntu 14.04
Workaround:
1.) put negativ number in parantheses (-1)^2 = 1
2.) insert the power argument with the <ctrl> key pressed like: -3<ctrl>8
3.) in scientific or programming mode use the (n↑) button.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gcalctool 6.4.1.1-0ubuntu3
ProcVersionSign
Uname: Linux 3.11.0-20-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Thu May 8 12:02:45 2014
InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
MarkForUpload: True
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: gcalctool
UpgradeStatus: No upgrade log present (probably fresh install)