System.JSON.JsonToFloat

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function JsonToFloat(const DotValue: string): Double;

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.JSON.pas
System.JSON.hpp
System.JSON System.JSON

Description

Returns the specified JSON floating-point value as a double.

For example, if <DotValue> is a string that contains 1.2, JsonToFloat returns 1.2.

Exceptions

Exception Message Scenarios

EConvertError

'<DotValue>' is not a valid floating point value

  • <DotValue> is not a valid JSON floating-point value.

See Also