Instructions to unsubscribe from this list at the end of the message
- ---------------------------------------------------------------------
Try:

#include <math.h>
if ( ceil(a*b) == (a*b) ) ...

The ceil function (or floor, trunc, round etc.) all convert a number to an 
integer, so if the result is equal to the original value, the number already 
was an integer.

Note that you can use the man command for most C++ functions - type "man ceil" 
for instance.

Ramon Casha
- ---------------------------------------------------------------------
You received this message because you are subscribed to the linux
mailing list. If you do not wish to continue receiving this mailing
list, please send a mail message to [EMAIL PROTECTED]
containing only the text "unsubscribe linux"

------------------------------

Reply via email to