ACC: Currency Is Significant to Four DigitsLast reviewed: June 8, 1997Article ID: Q92680 |
The information in this article applies to:
SUMMARYNovice: Requires knowledge of the user interface on single-user computers. When using the Currency data type within Visual Basic for Applications (or Access Basic in versions 1.x and 2.0), be aware that numbers are significant to four digits to the right of the decimal point.
MORE INFORMATIONThe reason for this is that most financial information, such as mortgage rates and stocks, require four digit precision. Currency variables are stored as 64-bit numbers (8 bytes) in a two's complement integer format and 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 representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807. The Currency data type is extremely useful for calculations involving money and for fixed-point calculations in which accuracy is particularly important.
REFERENCESFor more information about the Currency data type, search for "data types," and then "currency" using the Microsoft Access for Windows 95 Help Index. |
Keywords : GnlOthr kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |