Fix range floating point error.
Merge pull request #1232 from palantir/fix_range

Fix range floating point error.