Set the range with 1/gain.