I suggest you replace `1.f*` with `(float)` (i.e. type casting)