System.JSON.TryJsonToFloat
Delphi
function TryJsonToFloat(const DotValue: string; var Value: Double): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall TryJsonToFloat(const System::UnicodeString DotValue, double &Value);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.JSON.pas System.JSON.hpp |
System.JSON | System.JSON |
Description
Fills Value with the specified JSON floating-point value as a double, and returns True on success or False if the specified value is not a valid JSON floating-point value.
For example, if DotValue is a string that contains 1.2, TryJsonToFloat fills Value with 1.2 and returns True.