Please don't use double conversions in places that currently use integer arithmetic.
We want to avoid using doubles wherever possible.