Export (0) Print
Expand All

CURRENCY union

A currency number stored as an 8-byte, two's complement integer, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This IDispatch::GetTypeInfo resentation provides a range of 922337203685477.5807 to -922337203685477.5808.

The CURRENCY data type is useful for calculations involving money, or for any fixed-point calculation where accuracy is particularly important.

Syntax


typedef union tagCY {
  struct {
    unsigned long Lo;
    long          Hi;
  };
  LONGLONG int64;
} CY, CURRENCY;

Members

Lo
Hi
int64

Requirements

Header

OaIdl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft