[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'fpjson' (#fcl)

TJSONNumberType

Enumerate the different kind of numerical types

Declaration

Source position: fpjson.pp line 172

type TJSONNumberType = (

  ntFloat,

  

Floating point value

  ntInteger

  

32-bit Integer value

);

Description

TJSONNumberType is used to enumerate the different kind of numerical types: JSON only has a single 'number' format. Depending on how the value was parsed, FPC tries to create a value that is as close to the original value as possible: this can be one of integer, int64 or TJSONFloatType (normally a double). The number types have a common ancestor, and they are distinguished by their TJSONNumber.NumberType value.

See also

TJSONNumber.NumberType

  

Kind of numerical data managed by this class.


Documentation generated on: Jun 23 2021