With strict warnings on: Fixing Xcode warnings about implicit cast from `double` -> `float`, and loss of precision.