System.ConvUtils.ConvertFrom
Delphi
function ConvertFrom(const AFrom: TConvType; const AValue: Double): Double;
C++
extern DELPHI_PACKAGE double __fastcall ConvertFrom(const TConvType AFrom, const double AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.ConvUtils.pas System.ConvUtils.hpp |
System.ConvUtils | System.ConvUtils |
Description
Converts a measurement from the specified units to the base units of its conversion family.
Call ConvertFrom to convert the value AValue from the units specified by AFrom to the base units of the conversion family for AFrom.
If AFrom is not a registered conversion type, ConvertFrom raises an EConversionError exception.