Skip to content

TJSONIniFile.ReadFloat

Reads a floating-point value from the JSON ini file

Declaration

Source position: jsonini.pp line 63

public 
function TJSONIniFile.ReadFloat(const Section: string; 
                               const Ident: string; Default: Double)
                                : Double;  override;

Description

ReadFloat reads a floating-point value from the specified section and key. If the stored value is a JSON number, it is converted to Double. If the stored value is a string, it attempts to parse it as a floating-point number using both localized and non-localized formats. If the key is not found or conversion fails, the Default value is returned.

See also

Name Description
WriteFloat Writes a floating-point value to the JSON ini file