View Single Post
Old Sep 24, 2011, 12:44 PM   #3
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,110 (5.28/day)
Thanks: 591
Thanked 5,488 Times in 2,932 Posts

System Specs

I think you can use something like this ...
Code:
if (static_cast<int>(number) == number)
{
    // it's an integer
}
else
{
    // it's not an integer
}
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post: