help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StrToFloatDef

Convert a string to a float, with a default value.

Declaration

Source position: line 0

function StrToFloatDef(

  const S: String;

  const Default: Extended

):Extended;

function StrToFloatDef(

  const S: String;

  const Default: Extended;

  const FormatSettings: TFormatSettings

):Extended;

Description

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.

Errors

None. On error, the Default value is returned.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505