On 2016-09-01 20:27, Ken Thomases wrote:
The type conversion from assigning an integer constant to a double variable happens at compile time. Either coding style produces equivalent results.
Visual Studio generates a warning when you do float f = 1; or float f = 1.0. In the first one it complains about integer-to-float, in the second one double-to-float. It seems to have special behavior for float f = 0 or float f = 0.0 though.