Answers for "c++ how to make a negative float positive"

C++
3

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 "c++ how to make a negative float positive"

Browse Popular Code Answers by Language