Answers for "float of negative number cpp"

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

Code answers related to "float of negative number cpp"

Browse Popular Code Answers by Language