- Math.h
[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
#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; }
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