So far, you’ve learned how to express whole numbers of varying sizes. What about decimal numbers? That’s where a float or double comes in. The first holds any number with a few decimal places, and the second is best used to express decimals with more precision.