|
NAMEmoo —
Marco's Object Oriented calculator
SYNOPSIS
DESCRIPTIONA simple calculator that accepts C-like syntax as input. Calculations are done on expr, if given. Otherwise, the standard input is used.Numbers can be entered in hexadecimal (0xbeef), decimal (1984), octal (007), and binary (0b1001). All numerical operators (+, -, *, /, %), bit operators (|, ^, &, ~, <<, >>), and logical operators (==, !=, <, >, <=, >=, !, &&, ||) are supported. Output will be in the same bases as the input, unless a different
base was specified (see The options are: SEE ALSObc(1), dc(1), expr(1)AUTHORSmoo was written for the public domain by
Ray Lai ⟨ray@cyth.net⟩ after much
whining by Marco Peereboom.
CAVEATSInteger overflows are not checked. Marco says, ``I don't think you should call the integer overflows a bug but a feature. You can use it to test signed unsigned issues.''BUGSCalculations are limited to the size of a 64-bit integer.Like
bc(1),
Visit the GSP FreeBSD Man Page Interface. |