Help:Calculation

Calculation is the determination of something by using mathematics. One can evaluate an expression on the Scratch Wiki using the parser function #expr. There is a 14 digit limit for rational and irrational digits; rational numbers will show up as scientific notation as it passes the 14th digit.

Usage
To use this function, simply use the syntax. For example, is equal to, but  will result in an error (division by zero is undefined), similar to an error produced by the template error. This function also accepts wiki variables in it; is equal to. Common supported operators include brackets and common functions include. Irrational numbers are also supported, such as pi and e.

Operators
Therefore,

Errors
An error will result if:


 * An operator is missing a parameter.
 * gives
 * There is an unexpected number or operator.
 * gives
 * gives
 * An unsupported word or character is used.
 * gives
 * gives
 * A mathematical error occurs.
 * gives
 * gives

If a number is too large, it returns INF (positive infinity) or -INF (negative infinity).
 * gives
 * gives