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.0.8475.0
Syntaxpublic double GetFactor(
Type sourceType,
Type targetType
)
Parameters
- 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.
Return Value
DoubleThe value by which
sourceType is
multiplied to convert to
targetType, or
NaN if no factor
can be found.
See Also