Possible Duplicate:
Math – mapping numbers
I have value “x” that can be from 0 to 127 and a value “y” that can be from -1000 to 0.
I need to make that if x = 0 than y = -1000 and if x = 127 than y = 0… How can i make it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you just want a linear equation (y = mx + b). In your case, this would be