does not handle conversion of negative decimal numbers to binary correctly (twos complement form).
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcalctool (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcalctool
gcalctool does not handle conversion of negative decimal numbers to binary correctly (twos complement form). For instance -1 decimal converted to a 16 bit binary would be 1111111111111111; similarly -128 would be 10000000. See the stupid windows calculator as it does the conversion correctly.
Thanks
James Ronald
ProblemType: Bug
Architecture: i386
Date: Thu Oct 11 15:32:28 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gcalctool
Package: gcalctool 5.9.14-0ubuntu1
PackageArchitec
ProcCmdline: gcalctool
ProcCwd: /home/jronald
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_US.UTF-8
SourcePackage: gcalctool
Uname: Linux jronald-desktop 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux
Changed in gcalctool: | |
status: | Incomplete → Invalid |
Sorry, should be; similarly -128 would be 1111111110000000.