|
help > calc Calc syntax: calc <expression> The calc command is a limited calculator that lets you evaluate simple arithmetic expressions. Expressions may contain numerals, the 4 basic operators, and parentheses to specify the order of operations. Note that numbers outside the range of -2,147,483,648 to 2,147,483,647 will give invalid results. (We're using a 32-bit 2's complement integer size, if that means anything to you) You may now do exponents using "pow". See examples for syntax. Examples: calc 1 + 1 calc (3 * 7) / 5 + 2 calc 5 * pow(2,3) + 1 |