how to make float in java code example Example: what is a float java float int = 3.1415 //pi is a float because it is a decimal