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

Gets the value of the operand without regard to its sign More...

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

Public Attributes

NumericTerm numeral
 The numeric term whose absolute value shall be returned. 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

Gets the value of the operand without regard to its sign

AbsoluteValue is a NumericTerm which returns the value of the operand without regard to its sign.

Syntax
NumericTerm = |NumericTerm|;
Example
// Local Declarations
Integer MyValue1 = 123456;
Float MyValue2 = -123.456;
Integer Result1;
Float Result2;
// Flow
// Below expression should return 123456
Result1 = |MyValue1|;
// Below expression should return 123.456
Result2 = |MyValue2|;
// Below expression should return 135801.6
Result2 = |MyValue1* 1.1|;

Member Data Documentation

◆ numeral

NumericTerm OpenTestSystem.Otx.Core.Terms.AbsoluteValue.numeral

The numeric term whose absolute value shall be returned.