test for integer

1. Member
Join Date
Dec 1969
Posts
52

## test for integer

I have looked in the FAQs and searched the board, but I have been unable to figure out how to test if a variable is an integer. I am dividing a figure by 2, and if it is an integer, I want to run a different script than if it not.<BR>Any help would be appreciated, although I know that I should know this. Temporary brain freeze I guess.

2. Senior Member
Join Date
Dec 1969
Posts
5,104

## RE: test for integer

If theNumber = Int(Number) Then<BR> &#039;it&#039;s an integer<BR>End If

3. Senior Member
Join Date
Dec 1969
Posts
96,118

## If Int(num) = num Then ... <eom>

.<BR>

4. Senior Member
Join Date
Dec 1969
Posts
96,118

## 8 cruddy seconds...

...and I was typing fast, too!<BR><BR>[Of course, I was also giving a second answer to Angela, but still... Damned whippersnappers!]<BR><BR>

5. Senior Member
Join Date
Dec 1969
Posts
5,104

## Hehe. I win! :) (eop)

:)

6. Senior Member
Join Date
Dec 1969
Posts
1,765

## Quickest Poster award

And the award goes to....<BR><BR>**drumroll****<BR><BR>Doug....Again. ...<BR><BR>I&#039;ll bet your wife enjoys those quick fingers!!! (i mean no disrespect)

7. Senior Member
Join Date
Dec 1969
Posts
5,104

## Well, I won't speak for her...

.. but I enjoys those quick fingers.<BR><BR>Ewww...<BR><BR>Wow, there went that proverbial line.<BR><BR>:)

8. Senior Member
Join Date
Dec 1969
Posts
1,765

## Haha! 4 letters: TGIF! <eop>

x

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•