Fix implicit value conversion.

This pull request changes every use of `floorf` to `floor` 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.)