ScriptBasic:UsersGuide 9.10.1.5

From ScriptBasic
Jump to: navigation, search

[Contents]

9. General Language Format
9.10. Expressions
9.10.1. Operators

9.10.1.5. 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.


[<<<] [>>>]