input value is converted and returned.
Calculates the coefficient a and b based on the ranges given.
See Implementation