T Tracy Registered User. Local time Today, 20:29 Joined Oct 19, 2001 Messages 71 Jun 5, 2003 #1 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
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
Mile-O Back once again... Local time Today, 20:29 Joined Dec 10, 2002 Messages 11,305 Jun 5, 2003 #2 Use the Mod operator. Code: If YourNumber Mod 4 = 0 Then ' is a whole number Else ' has decimal places End If
Use the Mod operator. Code: If YourNumber Mod 4 = 0 Then ' is a whole number Else ' has decimal places End If
T Tracy Registered User. Local time Today, 20:29 Joined Oct 19, 2001 Messages 71 Jun 5, 2003 #3 OK Hacker, what are you on about?
Mile-O Back once again... Local time Today, 20:29 Joined Dec 10, 2002 Messages 11,305 Jun 5, 2003 #4 Tracy said: OK Hacker, what are you on about? Click to expand... Nothing of substance...