What is the purpose of double in the C language?
In C language, double is a data type used to store floating-point numbers (i.e. decimals). It allows for storing a larger range of decimals with higher precision compared to the float data type. Double can store a larger range of decimals, typically up to 15 significant figures, while float only has 6 significant figures. Therefore, double is suitable for calculations that require high precision, such as scientific or financial calculations.