speedcrunch / SpeedCrunch

A fast, high-precision and powerful cross-platform desktop calculator.
http://speedcrunch.org
265 stars 38 forks source link

Calculations using hexadecimal, octal and binary numbers #75

Open heldercorreia opened 8 years ago

heldercorreia commented 8 years ago

Originally reported on Google Code with ID 13

Hi,

please add a possibility to calculate in hex/octal/binary numbers.

Example for inputting hex/oct/bin:
1 + x40 - o11 & b101000 = 40

Examples for outputting hex/oct/bin:
hex(254) = xFE
oct(123) = o173
bin(6) = b110

This functionality would make SpeedCrunch *really* handy for IT-people.
Thanks.

Reported by XNeo2001 on 2006-10-21 22:54:58

heldercorreia commented 8 years ago
Yes, please add number systems!
E.g., have a default number system (which interprets input accordingly and formats
output) and let other values be entered by converting functions, like hex/oct/bin
above and dec for decimal.

Following this road, bit operators (and, or, xor) would be another great enhancement!

Reported by ujaroe on 2006-12-18 22:53:01

heldercorreia commented 8 years ago
Yes, please add this feature in the next release 0.8

Reported by fsck222 on 2006-12-27 11:27:08

heldercorreia commented 8 years ago
Yes, please add this feature in the next release 0.8

Reported by fsck222 on 2006-12-27 11:28:19

heldercorreia commented 8 years ago
yes, please add

Reported by bernhard.valenti on 2007-02-06 09:47:20

heldercorreia commented 8 years ago
Yes please implement that. this feature is realy missing. often i have to convert 
numbers from one format into another, so this would be very handy.

Reported by fryx.asraniel on 2007-02-10 13:50:41

heldercorreia commented 8 years ago
Already implemented in svn. Will be available for 0.8 version.

Reported by ariya.hidayat on 2007-04-16 08:45:03

heldercorreia commented 8 years ago

Reported by helder.pereira.correia on 2007-05-11 22:58:03

heldercorreia commented 8 years ago

Reported by helder.pereira.correia on 2007-07-02 08:36:41

heldercorreia commented 8 years ago
Where are those A,B,C,D,E,F keys for hexadecimal input? How do I convert A0FE from
hex to decimal?

Reported by kainuja on 2010-05-13 08:50:56

heldercorreia commented 8 years ago
@kainuja: There are no such keys. you must use the virtual keyboard.  To convert A0FE

to decimal, use "dec(0xA0FE)".

Reported by helder.pereira.correia on 2010-05-13 17:23:05

heldercorreia commented 8 years ago
@kainuja: I obviously meant the "real" keyboard instead.

Reported by helder.pereira.correia on 2010-05-13 17:31:17

heldercorreia commented 8 years ago
I would add to this, have functionality to be able to click on the binary displayed
number to toggle it on or off, similar to the decimal functionality of the windows
calculator ... 

Reported by benjamin.d2330 on 2015-06-25 17:11:33

lzyjk commented 4 years ago

This would be improved if it was possible to display results in two-complement given a word size, so for -1 (dec) we would get 0xFF (8 bit word size) or 0xFFFF (16 bit) etc. Much more useful when messing with hex or binary than getting -0x1.

Cheers

heldercorreia commented 4 years ago

@lzyjk Please note that we have migrated the issue tracker long time ago to https://bitbucket.org/heldercorreia/speedcrunch/issues . Please drop your suggestions there, thanks.