Whole Number Query

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
What is the easiest way to determine if the result of a calculation is a whole number or a decimal.

Thanks
 
Is_whole = ((result - round(result, 0)) = 0)

-tg
 
Back
Top