Click or drag to resize

DimensionfulQuantitySubtraction Operator

Implements the subtraction operator. Here, the intended operation is ambiguous if we subtract a biased unit and an unbiased unit. The result can be treated either as biased or unbiased. For example: 20°C minus 20 Kelvin. The result is either 293.15 K - 20 K = 273.15 K or 20°C - 20 K = 0 °C (biased). Although the same, this results in difficulties if subsequently rates are calculated from this result. Because of that, the decision was made to treat the result as unbiased value.

Namespace: Altaxo.Units
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static DimensionfulQuantity operator -(
	DimensionfulQuantity a,
	DimensionfulQuantity b
)

Parameters

a  DimensionfulQuantity
a.
b  DimensionfulQuantity
The b.

Return Value

DimensionfulQuantity
The result of the operator.
Exceptions
ExceptionCondition
ArithmeticException Try to subtract two incompatible units or Can not execute subtraction of unbiased unit minus biased unit
NotImplementedException
See Also