ConversionCacheGetFactor Method
Gets the factor by which a measurement in one
Unit
must be multiplied to convert it to another
Unit
of the same measurement.
Namespace: InnerDrive.QuantitativeAssembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
public double GetFactor(
Type sourceType,
Type targetType
)
- sourceType Type
- The Type of Unit
that is the source of the conversion to be performed.
- targetType Type
- The Type of Unit
that is the target of the conversion to be performed.
DoubleThe value by which
sourceType is
multiplied to convert to
targetType, or
NaN if no factor
can be found.