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



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

TryStrToFloat

Try to convert a string to a float.

Declaration

Source position: line 0

function TryStrToFloat(

  const S: String;

  var Value: Single

):Boolean;

function TryStrToFloat(

  const S: String;

  var Value: Single;

  const FormatSettings: TFormatSettings

):Boolean;

function TryStrToFloat(

  const S: String;

  var Value: Double

):Boolean;

function TryStrToFloat(

  const S: String;

  var Value: Double;

  const FormatSettings: TFormatSettings

):Boolean;

Description

TryStrToFloat tries to convert the string S to a floating point value, and stores the result in Value. It returns True if the operation was succesful, and False if it failed. This operation takes into account the system settings for floating point representations.

Errors

On error, False is returned.

See also

StrToFloat

  

Convert a string to a floating-point value.

Notes

 No notes exist for this page yet. 





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