Is a whole number?

Tracy

Registered User.
Local time
Today, 20:29
Joined
Oct 19, 2001
Messages
71
I am wanting to check if a number divided by say 4 turns out as a whole number/integer - so no decimal places.

Any ideas how I can do this?

Thanks
Tracy
 
Use the Mod operator.

Code:
If YourNumber Mod 4 = 0 Then
    ' is a whole number
Else
    ' has decimal places
End If
 
OK Hacker, what are you on about?
 

Users who are viewing this thread

Back
Top Bottom