VB6 int() oddity

I just noticed this when doing some testing in a VB6 app:

(green is expected results, red is unexpected)




So what is up with that value 88.931? I’m sure there is some background processing that explains it. But for now I’m going to have to do a kludge with something like this to ensure my return values are correct


In case you were wondering…I am using this to begin with to get around possible rounding problems.

  Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.