Answers for "c++ float negative inf"

C++
4

c++ how to make a negative float positive

float f{-0.27452};
std::cout << fabs(f) << std::endl; // 0.27452
Posted by: Guest on June-20-2020

Browse Popular Code Answers by Language