Use double precision for intermediate computation
Reduce UI artifacts in edge cases