FireDAC.Stan.Util.FDStr2Float

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FDStr2Float(const AValue: String; ADot: Char = '.'): Extended;
procedure FDStr2Float(pIn: PChar; ASize: Integer; ADestData: Pointer; ADestLen: Integer; ADot: Char = '.');

C++

extern DELPHI_PACKAGE System::Extended __fastcall FDStr2Float(const System::UnicodeString AValue, System::WideChar ADot = (System::WideChar)(0x2e))/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Stan.Util.pas
FireDAC.Stan.Util.hpp
FireDAC.Stan.Util FireDAC.Stan.Util

Description

Converts a given string to a floating-point value.

Use FDStr2Float to convert the AValue string to a floating-point value.

AValue must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional mantissa. The mantissa consists of 'E' or 'e', followed by an optional sign (+ or -), and a whole number. Leading and trailing blanks are ignored.

See Also