Introduction
We use different number types to store numbers in the best way for our program. Each type holds numbers of different sizes and with or without decimals.
When you need to store whole numbers that fit in a small range, use Int.
When you need to store very big whole numbers, use Long.
When you need to store numbers with decimals and less precision, use Float.
When you need to store numbers with decimals and more precision, use Double.
When you want to save memory by choosing the smallest type that fits your number.