Well, I figured it out one way, but I can't do
it the other, meaning set the slider x on the
bar based on where we are in the total.
tot = 12000
range = 220.0
x = 2
xper = x/range
a = tot * xper
put a
-- 109.0909
How do I determine x based on a?
a = tot * (x/range)
a*range = tot * x
x = a*range / tot
right?
Looks right to me.
Hmm...
Steven
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Steven Sacks
> Sent: Thursday, November 09, 2000 3:42 AM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Failing at slider math
>
>
> Hey math wizards. I'm feeling stupid.
> I know I know how to do this, but I can't figure it out!
> Here's my problem.
>
> I've got a slider.
> It's position on the bar is x.
> x goes from 30 to 250.
>
> I need to return a percentage of variable
> total based on where x is on the slider.
>
> total = someNumber
>
> I don't need slider programming, just the math.
>
> 30 = 1%
> 250 = 100%
>
> x = ???
>
> I know this is too easy. I feel dumb.
>
> Steven
>
>
> [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!]
>
>
[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!]