float
suggest changeA floating-point type, typically 32 bits. The standard does not require a particular size. The values of float are a subset of the values of double, and the values of double are a subset of the values of long double.
float area(float radius) {
const float pi = 3.14159f;
return pi*radius*radius;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents