Skip to main content

Error - Division by zero

If a flow fails due to a division by zero you might have set-up a math.div() operator were a division is made by 0.

To solve it, best is to check the inspector to identify the action causing this issue.

To still run your math.div() function we recommend using try() to resolve further issues.

Here is an example on how to use the try function:

  • try(math.div(100, 0), "Div by 0") => "Div by 0"

  • try(math.div(100, 10), "Div by 0") => 10

  • try(math.div(100, 0), 100) => 100