System.ConvUtils.ConvertTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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