浮动

浮点类型。具有 C++中三种浮点类型中最窄的范围。

float area(float radius) {
    const float pi = 3.14159f;
    return pi*radius*radius;
}