From: Roy C. Crisman

Incorrect.  the floatprecision only changes the number of decimal places that
display/result.  Director ALWAYS uses the full precision to calculate values.

-- Welcome to Director --
x = .00003
y = .00004
z = .00009
set the floatprecision = 2
put x
-- 0.00
put y
-- 0.00
put z
-- 0.00
c = x+y+z
put c
-- 0.00
set the floatprecision = 4
put c
-- 0.0002
set the floatprecision = 14
put c
-- 0.00016000000000

--------------------------------
>Hi Ellen
>
>I haven�t checked the code thoroughly but I think it's a floatprecision
>problem. When you have a floatprecision of 4 then director only uses four
>decimals in all calculations, so when you convert a string like this
>"0.123456789" with the value command the actual value you get is 0.1234 when
>the floatprecision 4. So try set the floatprecision to 14 (it's actually the
>maximum floatprecision value) and format the number when you want to display
>it.
>
>-----------------------------------------
>Jonatan Wallgren Multimediaproducent
>[EMAIL PROTECTED]



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

Reply via email to