DECIMAL structure (wtypes.h)

Represents a decimal data type that provides a sign and scale for a number (as in coordinates.)

Decimal variables are stored as 96-bit (12-byte) unsigned integers scaled by a variable power of 10. The power of 10 scaling factor specifies the number of digits to the right of the decimal point, and ranges from 0 to 28.

Syntax

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;

Members

wReserved

Reserved.

DUMMYUNIONNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME.scale

DUMMYUNIONNAME.DUMMYSTRUCTNAME.sign

DUMMYUNIONNAME.signscale

Hi32

The high 32 bits of the number.

DUMMYUNIONNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Lo32

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Mid32

DUMMYUNIONNAME2.Lo64

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header wtypes.h