On 16-jan-2006, at 19:51, Rob Romanek wrote:
Me too. My guess is that the original posts use of float() appeared
when doing division
Yeah, I realise I've been mixing up a few things: when using two or
more variables that may contain integer values in a division you have
to convert at least one of them to float to make sure the result is a
float as well:
put 45 / 30
-- 1
put 45.0 / 30
-- 1.5000
ISTR that there was a time/director version that would return an
integer even when just one of the arguments was integer. I'm pretty
sure that's where I picked up the habit of using float() around all
the arguments.
Sorry for the confusion.
Whew, what a great first posting to the Lingo-L list that was :-(
Mark
Mark Hagers
[EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]