System.JSON.JsonToFloat

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function JsonToFloat(const DotValue: string): Double;

C++

extern DELPHI_PACKAGE double __fastcall JsonToFloat(const System::UnicodeString DotValue);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.JSON.pas
System.JSON.hpp
System.JSON System.JSON


Beschreibung

Gibt den angegebenen JSON-Gleitkommawert als Double zurück.

Wenn DotValue beispielsweise ein String ist, der 1.2 enthält, gibt JsonToFloat 1.2 zurück.

Exceptions

Exception Meldung Szenarien

EConvertError

'DotValue' ist kein gültiger Gleitkommawert.

  • DotValue ist kein gültiger JSON-Gleitkommawert.

Siehe auch