float
suggest changeA 4-byte floating point type. Has the narrowest range out of the three floating point types in C++.
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