Answers for "can float values take input and pring negative values in c++"

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 "can float values take input and pring negative values in c++"

Browse Popular Code Answers by Language