System.JSON.Types.TJsonDecimal128

De RAD Studio API Documentation
Aller à : navigation, rechercher

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() {}
};

Propriétés

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


Description

Le type TJsonDecimal128 permet de prendre en charge des données Decimal128 dans du code JSON.

RAD Studio prend en charge l'utilisation de TJsonDecimal128 via FireDAC, le pilote de base de données MongoDB. FireDAC dispose d'un mécanisme intégré qui permet d'utiliser des types de données Decimal128 depuis MongoDB.

Utilisez les types de données Decimal128 via la prise en charge MongoDB de FireDAC.

Voir aussi