C Como fazer um flutuador negativo positivo

float f{-0.27452};
std::cout << fabs(f) << std::endl; // 0.27452 
Upset Unicorn