System.JSON.Types.TJsonDecimal128

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TJsonDecimal128 = record

C++

struct DECLSPEC_DRECORD TJsonDecimal128
{
public:
    typedef System::UnicodeString __fastcall (__closure *TDec128ToString)(const TJsonDecimal128 &ADec);
    typedef bool __fastcall (__closure *TStringToDec128)(const System::UnicodeString AStr, TJsonDecimal128 &ADec);
public:
    static TDec128ToString FDec128ToString;
    static TStringToDec128 FStringToDec128;
    static _DELPHI_CONST System::Int8 MaxStrLen = System::Int8(0x2a);
private:
    System::UnicodeString __fastcall GetAsString();
    void __fastcall SetAsString(const System::UnicodeString Value);
    System::Extended __fastcall GetAsExtended();
    void __fastcall SetAsExtended(const System::Extended Value);
    bool __fastcall GetIsNan();
    bool __fastcall GetIsNegInfinity();
    bool __fastcall GetIsPosInfinity();
    bool __fastcall GetIsZero();
public:
    unsigned __int64 lo;
    unsigned __int64 hi;
    __fastcall TJsonDecimal128(const System::UnicodeString AValue)/* overload */;
    __fastcall TJsonDecimal128(const System::Extended AValue)/* overload */;
    __property bool IsNan = {read=GetIsNan};
    __property bool IsPosInfinity = {read=GetIsPosInfinity};
    __property bool IsNegInfinity = {read=GetIsNegInfinity};
    __property bool IsZero = {read=GetIsZero};
    __property System::UnicodeString AsString = {read=GetAsString, write=SetAsString};
    __property System::Extended AsExtended = {read=GetAsExtended, write=SetAsExtended};
    TJsonDecimal128() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.JSON.Types.pas
System.JSON.Types.hpp
System.JSON.Types System.JSON.Types

Description

The TJsonDecimal128 type offers support for handling Decimal128 data in JSON.

RAD Studio supports the use of TJsonDecimal128 through the MongoDB database driver, FireDAC. FireDAC provides a built-in mechanism that works with Decimal128 data types from MongoDB.

Use the Decimal128 data types via FireDAC's MongoDB support.

See Also