1 out of 1 members found this post helpful.
Did you find this post helpful?

|
Re: How to adjust values to a new range
Allright...
[1] I believe you're with me for the 135/1023=0.132 part, right?
[2] IF the description for the */ operator WOULD have said "....resulting in an automatic division by 1000" then I think you'd see that the solultion WOULD be OutputValue = 100 + (InputValue */ 132), because 0.132*1000=132, correct?
[3] But since the */ operator "....resulting in an automatic division by 256" we must multiply 0.132 by 256 instead of 1000. Hence the value 34.
Makes sense? If not, which step?
Bookmarks