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

Gets the rounded integer value of the operand More...

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

Public Attributes

NumericTerm numeral
 The numeric term that shall be rounded to the neares tinteger towards plus infinity. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Gets the rounded integer value of the operand

Round is a IntegerTerm which returns the rounded integer value of the operand.

Syntax
IntegerTerm = Round(NumericTerm);
Examples
// Local Declarations
Float MyValue1 = -123.456;
Integer Result1;
// Flow
// Below expression should return -122
Result1 = Round(MyValue1);
// Below expression should return 1
Result1 = Round(0.1);
// Below expression should return -1
Result1 = Round(-1.9);
// Below expression should return 2
Result1 = Round(1.234);

Member Data Documentation

◆ numeral

NumericTerm OpenTestSystem.Otx.Core.Terms.Round.numeral

The numeric term that shall be rounded to the neares tinteger towards plus infinity.