BUG: String/Currency Conversion Broken with Sci. NotationLast reviewed: September 30, 1997Article ID: Q149319 |
The information in this article applies to:
SUMMARYVisual Basic 4.0 will sometimes return an incorrect value when converting a string to a currency value if the string contains a large number represented using scientific notation.
RESOLUTIONTo work around the problem, append zeroes to the end of the string to be converted. This will cause the correct result. For example, instead of using Print 1.7e7@, use Print 1.7000000000e7@. Nine zeroes will fix the problem in the worst case. The smaller the exponent, the fewer zeroes need to be added to obtain correct behavior.
STATUSMicrosoft has confirmed this to be an issue in the products listed above. We are researching the problem and will post more information here in the Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
Keywords : IAPVBA VB4ALL VB4WIN vbwin GnrlVb kbprg Technology : kbvba Version : WINDOWS:4.0 Platform : NT WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |