By default, a real numeric literal on the right-hand side of the assignment operator is treated as double. Therefore, to initialize a float variable use the suffix f or F.
If you don't use the suffix in the previous declaration, you will get a compilation error because you are attempting to store a double value into a float variable.
If you have the better answer, then send it to us. We will display your answer after the approval.