Check if the number is a whole number

Cheetah

Well-known member
Joined
Oct 12, 2006
Messages
232
Programming Experience
Beginner
How do i check if a double is a whole number without converting it to a string first?

Is this possible?

Is there a function?

Thanks.
 
Convert it to Integer and check if that is equal to original value. If CInt(doublevalue) = doublevalue ...
 
Would that be more efficient that doing a ToString and checking if it contains a "." (as in decimal place)?
 
Back
Top