public double ConvertUnits(
double InputValue,
Units FromUnits,
Units ToUnits
)Public Function ConvertUnits (
InputValue As Double,
FromUnits As Units,
ToUnits As Units
) As Doublepublic:
virtual double ConvertUnits(
double InputValue,
Units FromUnits,
Units ToUnits
) sealedConversions available:
Knots conversions use the international nautical mile definition (1 nautical mile = 1852m) rather than the original UK or US Admiralty definitions.
For convenience, milli bar and hecto Pascals are shown as separate units even though they have numerically identical values and there is a 1:1 conversion between them.
| InvalidValueException | When the specified from and to units can not refer to the same value. e.g. attempting to convert miles per hour to degrees Celsius |