Question about doubles?

I am quite new to c++ and i wonder if there is any way to check if a double has any decimals? for example check if it is 3.24 or 3.0?
1
2
3
4
	double deci = 3.63;

	if( (int)deci != deci)
		cout << "Deci has decimals";

This is a simple way.
i wonder if there is any way to check if a double

Almost everything is possible u just gotta code alot :P
Thank you so much!
Topic archived. No new replies allowed.