Sign in Join
FPDoc Onlineexperiment

TSingleHelper.TryParse function

Member of TSingleHelperpublicIn unit sysutils

Try to convert a string to a single-sized floating point value.

Declaration

pascal
class function TryParse(const AString: string; out AValue: Single)
: Boolean; overload; static
class function TryParse(const AString: string; out AValue: Single; 
 const AFormatSettings: TFormatSettings): Boolean
 ; overload; static

Description

TryParse attempts to convert the string AString to a single-sized floating point value and reports True if the conversion was successful. In that case the parsed value is returned in AValue.

If the conversion failed, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.