1 2 3 4 5 6 7
#include <iostream> int main() { std::cout << abs(1.123) << std::endl; std::cout << fabs(1.123) << std::endl; }
1 2
1.123 1.123