From ScriptBasic
Jump to: navigation, search


9. General Language Format
9.10. Expressions
9.10.1. Operators Modulus operator (%)

[<<<] [>>>]

This operator calculates the remainder of the two operands. The operands are converted to integer value and the result is integer. If the second operand is zero the result is undef. In case the option

OPTION RaiseMathError sbMathErrDiv

was used the operator will raise an error when the second argument is zero.

[<<<] [>>>]