OTX Reference  
OpenTestSystem.Otx.Core.Terms.Modulo Class Reference

Gets the remainder of a division More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.Modulo:
Inheritance graph

Public Attributes

NumericTerm divisor
 Numeric value of the operation of type NumericTerm. More...
 
NumericTerm numeral
 Numeric value of the operation of type NumericTerm. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Gets the remainder of a division

Modulo is a NumericTerm which returns the remainder of a division. If the dividend value is positive, the returned remainder will be positive. If the dividend value is negative, the returned remainder will be negative.

Exceptions
Core.Exceptions.ArithmeticExceptionIt is thrown if both dividend and divisor are Integer and the divisor value is zero.
Syntax
NumericTerm = NumericTerm1 % NumericTerm2;
Examples
// Local Declarations
Integer MyValue1 = 1;
Integer MyValue2 = 5;
Integer Result1;
Float Result2;
// Flow
Result1 = 17 % MyValue1;
Result2 = 17.5 % MyValue2;

Member Data Documentation

◆ divisor

NumericTerm OpenTestSystem.Otx.Core.Terms.Modulo.divisor

Numeric value of the operation of type NumericTerm.

◆ numeral

NumericTerm OpenTestSystem.Otx.Core.Terms.Modulo.numeral

Numeric value of the operation of type NumericTerm.