skittles12
New member
- Joined
- Dec 2, 2011
- Messages
- 1
Hey guys. First of all, hi! Just joined.
Ok so my problem. I'm writing a program, and having some trouble. It's math related, and I suck at maths.
I have a variable named Time and it equals 5000, a variable named Transition, and a variable named Duration which in this case equals lets say 7000.
When Time is 5000, I want Transition to equal 255. And once Time equals 7000, or Duration, I want Transition to equal zero. I've added a lot of crap into the program but I'm having trouble implementing this. It's just the simple percentage math thingy isn't it? I tried using it but seems to return an incorrect result...
Thanks in advance =)
Ok so my problem. I'm writing a program, and having some trouble. It's math related, and I suck at maths.
I have a variable named Time and it equals 5000, a variable named Transition, and a variable named Duration which in this case equals lets say 7000.
When Time is 5000, I want Transition to equal 255. And once Time equals 7000, or Duration, I want Transition to equal zero. I've added a lot of crap into the program but I'm having trouble implementing this. It's just the simple percentage math thingy isn't it? I tried using it but seems to return an incorrect result...
Thanks in advance =)