| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Convert a string to a float, with a default value.
Source position: sysstrh.inc line 175
| function StrToFloatDef( | 
| const S: string; | 
| const Default: Extended | 
| ):Extended; | 
| const S: string; | 
| const Default: Extended; | 
| const FormatSettings: TFormatSettings | 
| ):Extended; | 
StrToFloatDef tries to convert the string S to a floating point value, and returns this value. If the conversion fails for some reason, the value Default is returned instead.
None. On error, the Default value is returned.