Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- newVal = map(value, low1, high1, low2, high2)
- newVal = low2 + (value - low1) * (high2 - low2) / (high1 - low1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement