Purpose of a “.f” appended to a number?

3. is equivalent to 3.0, it’s a double.

f following a number literal makes it a float.

Leave a Comment