Sign in Join
FPDoc Onlineexperiment

TDoubleHelper.Parse function

Member of TDoubleHelperpublicIn unit sysutils

Convert a string to a floating point value.

Declaration

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

Description

Parse will try to convert AString to a Double-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.