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

Gets the value of the operand with inverted sign More...

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

Public Attributes

NumericTerm numeral
 The numeric term that shall be negated. 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 with inverted sign

Negate is a NumericTerm which returns the value of the operand with inverted sign.

Syntax
NumericTerm = Negate(NumericTerm);
Examples
// Local Declarations
Integer MyValue1 = 123456;
Float MyValue2 = -123.456;
Integer Result1;
Float Result2;
// Flow
// Below expression should return 123456
Result1 = Negate(MyValue1);
// Below expression should return 123.456
Result2 = Negate(MyValue2);
// Below expression should return -5.5
Result2 = Negate(-1.25 * -4.4);

Member Data Documentation

◆ numeral

NumericTerm OpenTestSystem.Otx.Core.Terms.Negate.numeral

The numeric term that shall be negated.