Math Functions: Errors Calculator
Math Functions: Errors
There are two kinds of errors, syntax and calculation. A syntax error occurs when an equation is formed in a way PowerOne doesn't understand. When a syntax error occurs, an error alert is displayed in the lower, left corner and each equation with an error shows an error button. Syntax errors are discussed in [https://.../t/help_equations|Equations].
Calculation errors occur when the result of a computation fails. When a calculation error occurs, the error is displayed next to the variable that was impacted. Calculation errors are discussed in [https://.../t/help_variables|Variables].
__This function is only available in templates.__
Error
++error("description")++
Displays the error text 'description'. 'description' must be surrounded by quotation marks (") or will return 'Missing "' calculation error. Generally error() function is used in if statements.
**Internal Error Codes**
You can also access the internal error codes used by PowerOne. For each error, replace "description" with the following:
- "NaN" : not a number
- "posInfinity" : positive infinity
- "negInfinity" : negative infinity
- "divZero" : division by zero
- "noAnswer" : no answer
**Examples**
= 0"; sqrt(x))>
[https://.../t/79d233ecb8b5acfb9549|Probabilities]
Keywords
-------------
NaN
posInfinity
negInfinity
divZero
noAnswer
error()