Right Click to Search

Sunday, July 25, 2024

Fabs (x) >> Absolute Value of Floating / Double Number




Header File :
  1. Math.h
Name Stands for -
[Fabs = 'F' abs = "Float" Absolute ]
Syntax :
double fabs ( double x );
float fabs ( float x );
long double fabs ( long double x );
No of Parameters : 1
Parameter        : Long
Return Type      : Long

What it Does ?
  • The function fabs() returns the absolute value of Float.
  • Labs calculates the absolute value of a Float , Double
Live Example :
#include < stdio.h>
 #include < math.h>
 int main(void)
  {
     float  number = -1234.0;
     printf("number: %f  absolute value: %f\n", number, fabs(number));
     return 0;
 }

Tags / Keywords : | , , ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates