Is there an obvious way of shifting numbers in the gcalc-tool
using an operator, such as << or >>
Am I missing an obvious shortcut?
Say I want to simply perform (1<<20)
, how can I do that without the need to shift by 15 and then by 5 using the drop-down buttons?
Alternatively, is there a good hex/binary calculator that you would suggest specifically oriented at hex/binary operations?
Thanks!
From what I have seen Gnome Calculator does not have keyboard shortcuts to those functions. Either way Qalculate lets you do exactly that.
To install either search it in Software Center or using terminal:
BASH also supports bitwise operations like bitwise or:
Hex and decimal:
Zero-prefixed binary output (using BASH for the bitwise or, dc to output its binary, and printf to zero-prefix):
Good for quick-and-dirty. man bash