Is it possible to do a calculation and check if the result is a whole number?
For example:
(a) 2004/4 = 501
(b) 2007/4 = 501.75
I'd like to do the above division and do something in the case of (a) and something else in the case of (b).
Any ideas please?
For example:
(a) 2004/4 = 501
(b) 2007/4 = 501.75
I'd like to do the above division and do something in the case of (a) and something else in the case of (b).
Any ideas please?