RE: Problem with floaint points

2001-07-23 Thread Tab Julius
7/23/01 -0400, Jason Whiting wrote: >I like that one even better. thanks alot. > >-Jason > > > > >-Original Message- >From: Tab Julius [mailto:[EMAIL PROTECTED]] >Sent: Monday, July 23, 2001 2:14 PM >To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' >Subjec

RE: Problem with floaint points

2001-07-23 Thread Jason Whiting
I like that one even better. thanks alot. -Jason -Original Message- From: Tab Julius [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 2:14 PM To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' Subject: Re: Problem with floaint points Since both operands are integers (tha

RE: Problem with floaint points

2001-07-23 Thread Jason Whiting
.loch = vcalc + sprite(149).loch - (sprite(149).width/2) -- this number is the Horizontal location of the left edge of the bar -Original Message- From: Rob Romanek [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 2:44 PM To: [EMAIL PROTECTED] Subject: Re: Problem with floaint p

Re: Problem with floaint points

2001-07-23 Thread Tab Julius
Since both operands are integers (that is, 1 is an integer, and the duration is an integer), Director will perform integer math on it, and the result will be an integer (in this case, 0). What you want to do is force it to do floating point math on it. Since one of your divisors is a constan

Re: Problem with floaint points

2001-07-23 Thread Rob Romanek
Hey Jason, go to the archives and read this earlier message at: [EMAIL PROTECTED]/msg10744.html that should answer your question. later, Rob Jason Whiting wrote: > Reading about how Director handles floating point calculations it seems like > the issues are only when displaying numbers not

Problem with floaint points

2001-07-23 Thread Jason Whiting
Hopefully somone can help me with this one. I am working on a movie slider. Here's the code to move the slider durring playback. ctime = sprite(2).currenttime -- 2 is the video sprite -- ctime is the current time code in ms cpart = ctime * (1/sprite(2).duration) -- cpart