Purpose of a “.f” appended to a number? March 9, 2023 by Tarik 3. is equivalent to 3.0, it’s a double. f following a number literal makes it a float.