System.SysUtils.TSingleHelper.TryParse
Delphi
class function TryParse(const S: string; out Value: Single): Boolean; overload; static;
class function TryParse(const S: string; out Value: Single; const AFormatSettings: TFormatSettings): Boolean; overload; static;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas | System.SysUtils | TSingleHelper |
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 Single number in
Value, and returns True if the conversion was successful, False otherwise. - Places the resulting Single 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 theAFormatSettingsparameter.