At 15:32 -0400 2001_06_26, Bill Numerick wrote:
>Just trying to get a simple loading bar to work.  Works when it i is 
>equal to 1 but otherwise just stays at zero.  I tried adjusting the 
>floatprecision but then agian maybe i did it wrong ;).
>
>sprite(38).width = (pEndRightSide - pStartRightSide) * (i / 
>theCurrentSubjectList.count)

floatprecision has no relevance here. It only controls how floats are 
coerced into strings.
You have two routes:
Either introduce floats into your calculations to avoid integer 
truncation, or do your multiplications before your divisions.

Jakob

[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