Computer Science Canada

if statement

Author:  lurtz [ Sat Feb 15, 2003 1:57 pm ]
Post subject:  if statement

is it possible to say that if the product of a math function, like 3 div 2, is a real number to do something.

thanks

Author:  Tony [ Sat Feb 15, 2003 2:18 pm ]
Post subject: 

you can use mod to see if there's a remainder. If remainder of a division is not 0, then the result would be a floating point number (decimals)

code:

if (3 mod 2) not=0 then
put "3 / 2 will produce a floating point result"
end if


: