Java tutorial
public class Main { public static void main(String args[]) { float floatValue = 2.5f; // f indicates that 2.5 is a float System.out.printf("float = %s\n", String.valueOf(floatValue)); } }