FIX: INT Function Returns Incorrect ValueLast reviewed: October 30, 1997Article ID: Q138522 |
3.00
WINDOWS
kbprg kbbuglist
The information in this article applies to:
SYMPTOMSThe INT function may, in some cases, return an incorrect value.
RESOLUTIONTo work around this problem, don't perform a calculation inside the INT function. Assign the result to a variable and use the INT function on that variable. You can use the following sample code to convert your variable to an integer:
Dim Result as Double Result = 3^2 Print INT(Result) STATUSMicrosoft has confirmed this to be a bug in Microsoft Visual Basic Version 3.0 for Windows. This problem was corrected in Microsoft Visual Basic Version 4.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: 3.00 buglist3.00 fixlist4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |