double
suggest changeA floating-point type, typically 64 bits. The standard requires its range to include that of float, but not a particular size. When combined with long, denotes the long double floating-point type, whose range includes that of double.
double area(double radius) {
const double pi = 3.141592653589793;
return pi*radius*radius;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents