System.JSON.Readers.TJsonReader.ReadAsDouble

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadAsDouble: Double; virtual;

C++

virtual double __fastcall ReadAsDouble();

Properties

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

Description

Reads the next JSON token and interprets it as a Double value.

Instead of Read, you may alternatively use a different reading method if you can anticipate the type of the next token.

ReadAsDouble function reads the next token and returns a Double value. ReadAsDouble calls ReadAsDoubleInternal.

If the token cannot be interpreted as the expected type, an exception raises and provides the path to the token, the number of the line and the position within that line.

See Also