Click or drag to resize

Quantity Operators

The Quantity type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Returns the sum of quantity a and b, which must have the same measurement unit
Public operatorStatic memberDivision
Implements the operator /.
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberGreaterThan
Compares first and second.
Public operatorStatic memberGreaterThanOrEqual
Implements the operator >=.
Public operatorStatic memberInequality
Implements the operator !=.
Public operatorStatic memberLessThan
Implements the operator <.
Public operatorStatic memberLessThanOrEqual
Implements the operator <=.
Public operatorStatic memberMultiply(Decimal, Quantity)
Implements the operator *.
Public operatorStatic memberMultiply(Quantity, Decimal)
Implements the operator *.
Public operatorStatic memberSubtraction
Subtracts the second quantity from the first. The quantities must have the same Unit.
Top
See Also