System.IniFiles.TCustomIniFile.ReadFloat

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadFloat(const Section, Name: string; Default: Double): Double; virtual;

C++

virtual double __fastcall ReadFloat(const System::UnicodeString Section, const System::UnicodeString Name, double Default);

Properties

Type Visibility Source Unit Parent
function public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TCustomIniFile

Description

Retrieves a float value from an ini file.

Call ReadFloat to read a float value from an ini file. Section identifies the section in the file that contains the desired key. Ident is the name of the key from which to retrieve the float value. Default is the float value to return if the:

  • Section does not exist.
  • Key does not exist.
  • Data value for the key is not assigned.

The decimal separator is specified by the global variable System.SysUtils.FormatSettings.

See Also