float literals are defined by using the suffix F or f, or by using a real number:

float f = 30.5F;