System.ConvUtils.ConvertTo

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ConvertTo(const AValue: Double; const ATo: TConvType): Double;

C++

extern DELPHI_PACKAGE double __fastcall ConvertTo(const double AValue, const TConvType ATo);

Properties

Type Visibility Source Unit Parent
function public
System.ConvUtils.pas
System.ConvUtils.hpp
System.ConvUtils System.ConvUtils

Description

Converts a measurement from the base units of a conversion family into a specified conversion type.

Call ConvertTo to convert the value AValue from the base units of the conversion family for ATo into the conversion units specified by ATo.

If ATo is not a registered conversion type, ConvertTo raises an EConversionError exception.

See Also