> tell calculator 2 + 3 * 4 The Calculator tells you '14'If you feel lazy,
tell calcwill work as well.
The calculator internally works with double floats, so there's a limit to its precision.
If you're interested in details, here's the syntax it understands:
expression = factor | factorThe only constants available are
+expression | factor
-expression factor = unary | unary
*factor | unary
/factor | unary
modfactor unary = exp |
+unary | function unary exp = atom | atom
^unary | atom
**unary | atom exponent atom = number |
|| fraction | constant number = [0-9]*(\.[0-9]+)?([eE][+-]?[0-9]+)? fraction = [0-9]*[¼½¾] (only shows properly if you have latin-1) exponent = [°¹²³]+ - " -
The functions available are
log (base 10 logarithm),
floor (round down),
ceil (round up),
trunc (truncate decimals),
round (round away from
The calculator can also factorize numbers:
tell calculator factor 4711The Calculator tells you 'The prime factors of 4711 are 7 and 673.'
Generated on Mon Aug 31 21:53:22 2020