A floating point type. Its range includes that of float
. 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;
}