ConverterConvert(Double, String, String) Method
Return the new version of the source value after it has been converted
from the source unit to the target unit, using an implicit common
domain shared between the source and target units.
Namespace: ConversionCalcAssembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
public double Convert(
double sourceValue,
string sourceUnit,
string targetUnit
)
Public Function Convert (
sourceValue As Double,
sourceUnit As String,
targetUnit As String
) As Double
No code example is currently available or this language may not be supported.
- sourceValue Double
-
The value to be converted.
- sourceUnit String
-
The unit from which the conversion will be made.
- targetUnit String
-
The unit into which the value will be converted.
Double
The value resulting from the conversion.