A
Apple
is there any simple way to check if the value of a double is an integer?
like,
double d;
d = 15.5 => NOT an integer
d = 15.0 => IS an integer
if there's no standard function to do that, can anyone give me a hint on how
to write a right one?
thanks.
like,
double d;
d = 15.5 => NOT an integer
d = 15.0 => IS an integer
if there's no standard function to do that, can anyone give me a hint on how
to write a right one?
thanks.