Convert all float values to double values.

Convert all `float` values and corresponding methods to `double` to improve precision.