home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT23.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-14  |  532 b   |  19 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat23.c                                              */
  3. /*------------------------------------------------------------------*/
  4.  
  5. #include <math.h>
  6. #include <stdio.h>
  7.  
  8. void main()
  9. {
  10.    double number = 423.54;
  11.    double minmaxint,maxminint;
  12.  
  13.    maxminint = floor(number);
  14.    minmaxint = ceil(number);
  15.  
  16.    printf("ñp⌐≤ %5.2f ñº│╠ñj╛π╝╞¡╚ %5.2f\n",number,maxminint);
  17.    printf("ñj⌐≤ %5.2f ñº│╠ñp╛π╝╞¡╚ %5.2f\n",number,minmaxint);
  18.  }
  19.