> h = "5"
> put h
> -- "5"
> put h+ 10
> -- 15.0000
> 
> 
> Yeah, I know about float precision, integer(h) and all that, I just
> don't 
> remember strings defaulting to floats when added; I always thought
> they 
> stayed integers?
> 
That *is* an odd quirk. Here's more:

h="5"
put value(h)
-- 5
i=h+10
put i
-- 15.0000
i=value(h) + 10
put i
-- 15
Cordially,

Kerry Thompson
[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!]

Reply via email to