float myNum = 5.75f;
myNum
System.out.println(myNum);
out
The float keyword defines a data type for storing fractional numbers ranging from 3.4e−038 to 3.4e+038.
Remember to conclude the value with an “f”: