Fix implicit value conversion.

This pull request changes every use of `floorf` to `float` function where a `double`/`CGFloat` value is expected. The primary effect is to shut the compiler up :smiling_imp: (But we are now also not truncating the value.)