home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c025 / 1.ddi / FABS.C < prev    next >
Encoding:
Text File  |  1985-02-02  |  207 b   |  14 lines

  1. main()    /* fabs.c -- illustrates use of fabs() */
  2.  
  3. {
  4. double number;
  5.  
  6. double result;
  7.     number = -3122.3242;
  8.  
  9.     result = fabs(number);
  10.     printf("%f", result);
  11.  
  12. /*    Correct answer is: 3122.324200 */
  13. }
  14.