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

Division of two operands More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.Divide:
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
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Division of two operands

Divide Divide is a NumericTerm which returns result of the Division which is the quotient of two operands.

Exceptions
Core.Exceptions.ArithmeticExceptionIt is thrown if both dividend and divisor are Integer and the divisor value is zero.
Syntax
NumericTerm quotient = NumericTerm dividend / NumericTerm divisor;
NumericTerm divisor
Numeric value of the operation of type NumericTerm.
Definition: Core.cs:11430
Example
// Local Declarations
Integer MyValue1 = 1;
Float Result1;
// Flow
Result1 = MyValue1 / 115;
Result1 = MyValue1 / 1.5;

Member Data Documentation

◆ divisor

NumericTerm OpenTestSystem.Otx.Core.Terms.Divide.divisor

Numeric value of the operation of type NumericTerm.

◆ numeral

NumericTerm OpenTestSystem.Otx.Core.Terms.Divide.numeral

Numeric value of the operation of type NumericTerm.