2.2.1.1.1.1 DECIMAL
The DECIMAL structure is used to represent an exact numeric value with a fixed precision and fixed scale.
When vType is set to VT_DECIMAL (0x0000E), the vData1 and vData2 fields of CBaseStorageVariant MUST be interpreted as follows.
vData1: The number of digits to the right of the decimal point. MUST be in the range 0 to 28.
vData2: The sign of the numeric value. Set to 0x00, if the sign is positive; set to 0x80, if the sign is negative.
When vType is set to VT_DECIMAL, the format of the vValue field is specified in the following diagram.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Hi32 |
|||||||||||||||||||||||||||||||
|
Lo32 |
|||||||||||||||||||||||||||||||
|
Mid32 |
|||||||||||||||||||||||||||||||
Hi32 (4 bytes): The highest 32 bits of the 96-bit integer.
Lo32 (4 bytes): The lowest 32 bits of the 96-bit integer.
Mid32 (4 bytes): The middle 32 bits of the 96-bit integer.