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.

Definition

Namespace: ConversionCalc
Assembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
C#
public double Convert(
	double sourceValue,
	string sourceUnit,
	string targetUnit
)

Parameters

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.

Return Value

Double
The value resulting from the conversion.

See Also