Compartir a través de


Estructura DECIMAL (wtypes.h)

Representa un tipo de datos decimal que proporciona un signo y una escala para un número (como en coordenadas).

Las variables decimales se almacenan como enteros de 96 bits (12 bytes) sin signo escalados por una potencia variable de 10. La potencia de 10 factor de escala especifica el número de dígitos a la derecha del separador decimal y oscila entre 0 y 28.

Sintaxis

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;

Miembros

wReserved

Reservado.

DUMMYUNIONNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME.scale

DUMMYUNIONNAME.DUMMYSTRUCTNAME.sign

DUMMYUNIONNAME.signscale

Hi32

Los 32 bits altos del número.

DUMMYUNIONNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Lo32

DUMMYUNIONNAME2.DUMMYSTRUCTNAME2.Mid32

DUMMYUNIONNAME2.Lo64

Requisitos

Requisito Value
Cliente mínimo compatible compilación 20348 de Windows 10
Servidor mínimo compatible compilación 20348 de Windows 10
Encabezado wtypes.h