DECIMAL 結構 (wtypes.h)

表示十進位數據類型,提供座標 (的符號和小數位數小數位數。)

十進位變數會儲存為96位 (12位元組) 以10個變數乘冪調整的不帶正負號整數。 10 縮放比例的乘冪會指定小數點右邊的數位數目,範圍從 0 到 28。

語法

typedef struct tagDEC {
  USHORT wReserved;
  union {
    struct {
      BYTE scale;
      BYTE sign;
    } DUMMYSTRUCTNAME;
    USHORT signscale;
  } DUMMYUNIONNAME;
  ULONG  Hi32;
  union {
    struct {
      ULONG Lo32;
      ULONG Mid32;
    } DUMMYSTRUCTNAME2;
    ULONGLONG Lo64;
  } DUMMYUNIONNAME2;
} DECIMAL;

成員

wReserved

保留的。

DUMMYUNIONNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME.scale

DUMMYUNIONNAME.DUMMYSTRUCTNAME.sign

DUMMYUNIONNAME.signscale

Hi32

數位的高32位。

DUMMYUNIONNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Lo32

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Mid32

DUMMYUNIONNAME2.Lo64

規格需求

需求
最低支援的用戶端 Windows 10 組建 20348
最低支援的伺服器 Windows 10 組建 20348
標頭 wtypes.h