System.SysUtils.TDoubleHelper.TryParse
Delphi
class function TryParse(const S: string; out Value: Double): Boolean; overload; inline; static;
class function TryParse(const S: string; out Value: Double; const AFormatSettings: TFormatSettings): Boolean; overload; inline; static;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TDoubleHelper |
Description
Returns a boolean value representing the success code for converting a string to a floating point value.
This method is overloaded:
- Places the resulting Double number in
Value
, and returns True if the conversion was successful, False otherwise. - Places the resulting Double number in
Value
, and returns True if the conversion was successful, False otherwise. This form of TryParse is thread-safe, due to the localization information contained in theAFormatSettings
parameter.