Ultra-nitpick: you set `v` to `0.0` then compare that to (integer) `0`. `if v` is fastest and clearest anyway.