Manual Reference Pages - MOO (1)
- Marcos Object Oriented calculator
A simple calculator that accepts C-like syntax as input.
Calculations are done on
Otherwise, the standard input is used.
Numbers can be entered in hexadecimal (0xbeef),
and binary (0b1001).
All numerical operators (+, -, *, /, %),
bit operators (|, ^, &, ~, <<, >>),
and logical operators (==, !=, <, >, <=, >=, !, &&, ||)
Output will be in the same bases as the input,
unless a different base was specified
If only one number is input,
the result is printed in all bases.
The options are:
Output numbers in
can be 2, 8, 10, 16, or all.
Multiple bases may be specified by giving the
flag multiple times.
Output base 10 numbers as signed.
Output base 10 numbers as unsigned.
Specifies a directory for temporary files to be created.
The default is
was written for the public domain by
.An Ray Lai Aq firstname.lastname@example.org
after much whining by Marco Peereboom.
Integer overflows are not checked.
I dont think you should call the integer overflows a bug but a feature.
You can use it to test signed unsigned issues.
Calculations are limited to the size of a 64-bit integer.
parses 3--2 without error.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.