public static double ConvertUnits(
double InputValue,
Unit FromUnits,
Unit ToUnits
)Public Shared Function ConvertUnits (
InputValue As Double,
FromUnits As Unit,
ToUnits As Unit
) As DoubleConversions 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.
| InvalidOperationException | 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 |