Did you try the mod function? It can accept floats as well as integers.
(it throws away the non-integer part & then evaluates)
i.e.
myFloat = 7.3
put ilk(myFloat)
-- #float
if (myFloat mod 2) then put "not even"
-- "not even" -- ( 7 is an odd number )
hth
-Buzz
At 9:56 AM -0400 7/17/01, Cole Tierney wrote:
>What a coincedence. A coworker of mine just asked me a similar
>question. In this case we have a huge float (greater than
>maxinteger) and need to know if it is evenly divisable by 2. We can
>not truncate the result, since it won't fit into an integer. We'll
>probably fall back on converting to a string and examining that
>result.
>
>Any thoughts?
>
>Cole
>
>[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!]
[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!]