A convenient solution could be a new builtin function "float":

Result = float(a + b*c -d/e + 4/3)
win.debug(tostring(Result))

where all vars in the argument of float()
are treated as being decimal numbers,
and even the 4/3 is treated as 4.0/3.0

R = tostring(float(3/2)) ;; returns 1.5, the same as:
R = tostring(3.0/2.0)

R = float(3/2) ;; returns the same mystery stuff as
R = 3.0/2.0




Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to