Avoid double precision issues