The next data types we will look at are float and double. With these data types, you can use decimals. Floats can have up to seven decimal places, while doubles can have up to sixteen. Doubles are much more accurate, especially in currency, because of its advantage of decimal places.