Convert numbers according to a given scale.