Fix --gain with fractional gain values.
Merge pull request #39 from mutability/fractional-gain

Fix --gain with fractional gain values.