As you can see, the literal in the last line, 12.5, is doubleby default, hence it needed to be assigned to a double variable, while the first two lines specify the literal in float types. You can also specifydorDas a suffix to define a double, likef orFfor float andmfor decimal.