Difference between revisions of "Extensions.Quantities.Subtraction"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Quantities]]
+
{{DISPLAYTITLE:'''Subtraction '''}}[[Category:Quantities]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | Subtraction | Subtraction of two numeric variables | [[Operations]] | [[Quantities|OTX Quantities extension]] | [[Overloading semantics]] | [[InvalidConversionException]] | - }}
+
{{ClassificationActivity | Subtraction | Subtraction of two numeric variables | [[Operations]] | [[Extensions.Quantities|OTX Quantities extension]] | [[Overloading semantics]] | [[Extensions.Quantities.InvalidConversionException|InvalidConversionException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 11: Line 11:
 
This is a term which as a result of the subtraction of two numeric values ​​(is NumericQuantity) returns with respect to their units.  
 
This is a term which as a result of the subtraction of two numeric values ​​(is NumericQuantity) returns with respect to their units.  
  
{{TermReturnValue| [[Quantity]] | Result of the subtraction of two numeric variables (NumericQuantity)}}
+
{{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | Result of the subtraction of two numeric variables (NumericQuantity)}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| QuantityTerm1 | [[Quantity]] | [[Term]] | - | [1] | Left operand is of type NumericQuantity}}
+
{{TableRowPropertie1| QuantityTerm1 | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | Left operand is of type NumericQuantity}}
{{TableRowPropertie1| QuantityTerm2 | [[Quantity]] | [[Term]] | - | [1] | Right operand is of type NumericQuantity}}
+
{{TableRowPropertie1| QuantityTerm2 | [[Extensions.Quantities.Quantity|Quantity]] | [[Term]] | - | [1] | Right operand is of type NumericQuantity}}
 
|}
 
|}
  
Line 28: Line 28:
  
 
== See also ==
 
== See also ==
[[Addition]] <br/>
+
[[Extensions.Quantities.Addition|Addition]] <br/>
[[Multiplication]] <br/>
+
[[Extensions.Quantities.Multiplication|Multiplication]] <br/>
[[Division]]
+
[[Extensions.Quantities.Division|Division]]

Revision as of 03:11, 16 February 2016

Classification

Name Subtraction
Short Description Subtraction of two numeric variables
Class Operations
Extension OTX Quantities extension
Group Overloading semantics
Exceptions InvalidConversionException
Checker Rules -
Standard Compliant Yes

OTL Syntax

QuantityTerm = QuantityTerm1 - QuantityTerm2;

Description

This is a term which as a result of the subtraction of two numeric values ​​(is NumericQuantity) returns with respect to their units.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Quantity Result of the subtraction of two numeric variables (NumericQuantity)

Properties

Name Data Type Class Default Cardinality Description
QuantityTerm1 Quantity Term - [1] Left operand is of type NumericQuantity
QuantityTerm2 Quantity Term - [1] Right operand is of type NumericQuantity

OTL Examples

Quantities.Quantity result;

result = Quantity1 = 1 [@Unit, "ODX_RS_UNIT_LIB.odx", "km"] - 500 [@Unit, "ODX_RS_UNIT_LIB.odx", "m"];

See also

Addition
Multiplication
Division