Jon 1,009 Posted December 12, 2003 Can anyone think of a simple way to determine if any given double data type is a whole number or not?e.g.double dTest = 4294967306.22452How can I test if dTest is a whole number or a floating point given that dTest is bigger than the long integer data type so you can't just convert double to long and back then compare.I also don't want to use __int64 because it's freaky on MinGWThere's probably a simple solution I'm completely missing. Or maybe _int64 is the only way to go. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
MattNis 0 Posted December 12, 2003 Convert the double to a string and search for a "."look herehttp://www.eng-tips.com/gviewthread.cfm/le...d/536/qid/53657 [quote]I was busy waiting all night for the Columbus Day Bunny to come down my chimney and light fireworks in my pumpkin.There's so much wrong with that.Oh, I'm sorry, i forgot you were Jewish.[/quote] Share this post Link to post Share on other sites
Valik 478 Posted December 15, 2003 Did you find a solution to this problem, Jon, or did you just use __int64 anyway? Share this post Link to post Share on other sites
Jon 1,009 Posted December 15, 2003 The current version of mingw seems to support __int64 so I just used that Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites