// float numbers are marked with an 'f' in Java float num1 = 15.51f; Float num2 = 32.23f; // they are the 32bit version of double/Double // watch it: long are marked and not int like here for float/double