Sign in Join
FPDoc Onlineexperiment

TSingleHelper.Parse function

Member of TSingleHelperpublicIn unit sysutils

Convert a string to a floating point value.

Declaration

pascal
class function Parse(const AString: string): Single; overload; static
class function Parse(const AString: string; 
 const AFormatSettings: TFormatSettings): Single
 ; overload; static

Description

Parse will try to convert AString to a single-sized floating point value. It will take into account internationalization settings. (it uses FloatToStr).

Errors

If the string AString is not a valid floating-point value, a EConvertError exception is raised.

See also

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