Wcalc
De Linuxmemo.
A natural-expression command-line calculator
-d or -dec or --decimal
Results are printed in decimal (base 10). This option is the
default, and does not have a default prefix to indicate that num‐
bers are in base 10.
-h or -hex or --hexadecimal
Results are printed in hexadecimal (base 16). Numbers printed in
hexadecimal have a prefix of 0x unless the -p or --prefixes option
is used.
-o or -oct or --octal
Results are printed in octal (base 8). Numbers printed in octal
have a prefix of 0 unless the -p or --prefixes option is used.
-b or -bin or --binary
Results are printed in binary (base 2). Numbers printed in binary
have a prefix of 0b unless the -p or --prefixes option is used.
-p or --prefixes
Toggles printing prefixes for hexadecimal, octal, and binary forms.