Internal Format of CURRENCY Data Type in Basic products (51414)
The information in this article applies to:
- Microsoft Visual Basic for MS-DOS
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q51414 SUMMARY
The CURRENCY data type is an 8-byte signed integer scaled by 10,000.
This allows a variable of the CURRENCY type to have a range of:
(2 ^ 63 -1) / 10,000 = +922337203685477.5807
To
(2 ^ 63) / 10,000 = -922337203685477.5808
Up to 19 digits are allowed, with no more than 4 digits to the right
of the decimal point.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB51414 |
---|
|