Skip to content

TCustomIniFile.ReadFloat

Read a floating point value.

Declaration

Source position: inifiles.pp line 193

public 
function TCustomIniFile.ReadFloat(const Section: string; 
                                 const Ident: string; Default: Double)
                                  : Double;  virtual;

Description

ReadFloat reads the key Ident in section Section, and returns the value as a float (Double). If the specified key or section do not exist, then the value in Default is returned. If the key exists, but contains an invalid float value, Default is also returned. The international settings of the SysUtils are taken into account when deciding if the read value is a correct float.

See also

Name Description
WriteFloat Write a floating-point value.
ReadInteger Read an integer value from the file.
ReadBool
ReadDate Read a date value.
ReadDateTime Read a Date/Time value.
ReadTime Read a time value.
ReadString Read a string valued key.
ReadBinaryStream Read binary data.