"R. Bhakti Klein" wrote:
> ...
> but seriously folks. you mean divisible evenly, i presume, for any
> number is divisible by any other number, if uneven-itude counts...
>
> a couple ways that come to mind:
> assume x and y are integers and you want to see if x goes into y evenly.
>
> if y.float/x = y/x then {it divides evenly}
>
> and if y mod x = 0 then {it divides evenly}
If you can't make the assumption that the numbers are integers, you
could use something like:
on EvenlyDivisible x,y
return (float(x)/y = integer(x/y)) -- returns a boolean
end
--
Carl West [EMAIL PROTECTED]
617.262.8830 x246
"Depend upon it, there comes a time when, for every addition of
knowledge, you forget something that you knew before. It is of the
highest importance, therefore, not to have useless facts elbowing out
the useful ones."
-Sherlock Holmes in 'A Study in Scarlet'
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]