menu_logo

menu_view_template done edit menu_subscribe menu_add menu_publish iOS Create Account Login
menu_clear
  • menu_insert_row
  • menu_delete_row
  • menu_insert
  • menu_share_template
  • menu_share_results
  • menu_duplicate
  • menu_view_source
  • menu_view_calc_log
  • menu_settings
  • menu_tags
  • help
  • menu_profile
  • menu_log_out
menu_preview_only
details_tap
details_type
details_title

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()