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