About 187,000 results
Open links in new tab
  1. fabs, fabsf, fabsl, fabsd32, fabsd64, fabsd128 - cppreference.com

    Dec 20, 2024 · Otherwise, if the argument has integer type, fabs is called. Otherwise, if the argument is complex, then the macro invokes the corresponding complex function (cabsf, cabs, cabsl).

  2. fabs () Function in C - GeeksforGeeks

    Jul 23, 2025 · fabs () function of math.h header file in C programming is used to get the absolute value of a floating point number. This function returns the absolute value in double. Syntax: double fabs …

  3. C fabs () - C Standard Library - Programiz

    Builders don't just know how to code, they create solutions that matter. The fabs () function returns the absolute value of a number.

  4. fabs, fabsf, fabsl | Microsoft Learn

    Jul 28, 2025 · In a C program, unless you're using the <tgmath.h> macro to call this function, fabs always takes and returns a double. If you use the fabs macro from <tgmath.h>, the type of the …

  5. fabs - C++ Users

    Header <tgmath.h> provides a type-generic macro version of this function. Value whose absolute value is returned. The absolute value of x. printf ("The absolute value of 3.1416 is %f\n", fabs (3.1416) ); …

  6. C Language: fabs function (Absolute Value of Floating-Point Number)

    In the C Programming Language, the fabs function returns the absolute value of a floating-point number.

  7. fabs, fabsf, fabsl - cppreference.com - University of Helsinki

    4) Type-generic macro: If the argument has type long double, fabsl is called. Otherwise, if the argument has integer type or has type double, fabs is called. Otherwise, fabsf is called. If the argument is …

  8. C Language fabs () Function: Usage, Examples, and Best Practices

    Learn how to use the fabs () function in C to calculate absolute values of floating-point numbers. Includes syntax, practical examples, comparisons with abs () and cabs (), plus best practices for …

  9. C Math fabs () Function - W3Schools

    Definition and Usage The fabs() function returns the absolute (positive) value of a number. The fabs() function is defined in the <math.h> header file.

  10. C fabs Function - Tutorial Gateway

    The C fabs function is one of the Math Function, used to return the absolute positive number of a given number or specified expression.