The calc command may be used to do simple integer calculations or to convert numbers from one radix to another. Calc reads commands from stdin and prints the result to stdout. The inpout radix for mumbers may be decimal (default), octal (if starting with a '0') or hexadecimal (if starting with "0x"). The output is always printed in four radices: decimal, octal, hexadecimal, and binary. The decimal variant is printed in both signed and unsigned representation. The result is printed in two variants using 32 bit and 64 bit repesentations for the numbers.
| Tags | Utilities |
|---|---|
| Licenses | GPL |
| Operating Systems | BeOS Mac OS X Windows Windows OS/2 POSIX |