TIniFile.ReadFloat

function ReadFloat(const Section, Ident: string; Default: Double): Double Section: Section name Ident: Property name (key) Default: Value used as a result when the key has not been found Result: Value of a key (if successful) or Default (if not)

Description
This function will try to read a Double (decimal) value from specified section and key If it fails to do so for some reason, the Default value is returned.

Example
example.ini in soldatserver's root folder

script code: