Skip to content

TJSONNumberType

Enumerate the different kind of numerical types.

Declaration

Source position: fpjson.pp line 211

type
  TJSONNumberType = (ntFloat,ntInteger,ntInt64,ntQWord)

Values

Value Description
ntFloat Floating point value.
ntInteger 32-bit Integer value.
ntInt64 64-bit integer value.
ntQWord 64-bit unsigned 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

Name Description
TJSONNumber.NumberType Kind of numerical data managed by this class.