#include <syslib.h> |
#include <math.h> |
main() |
{ |
float x; |
clrscr(); // clear screen |
textmode ( 0x00 ); // 6 lines per LCD screen |
x=74.12; |
printf ( "ceil(%.2f)=%.0f\n" ,x, ceil ( x ) ); |
x=-74.12; |
printf ( "ceil(%.2f)=%.0f\n" ,x, ceil ( x ) ); |
getchar (); |
return 0; |
} |