참조: ceil() 정수값을 계산하여 돌려준다 페이지 정보 작성자 이즈 댓글 0건 조회 969회 작성일 10-09-10 15:33 목록 본문 ceil() 설명 정수값을 계산하여 돌려준다. 문법 #include<math.h> double ceil(double x); 기능 x보다 큰 정수값을 계산하여 돌려줍니다.리턴값 x 보다 적지 않은 초소의 정수값 사용법 #include<stdio.h> #include<math.h> int main( ) { printf("%.2f\n", ceil(-1.0)); printf(" %.2f\n", ceil(1.0)); printf("%.2f\n", ceil(-2.5)); printf(" %.2f\n", ceil(2.5)); printf("%.2f\n", ceil(-3.9)); printf(" %.2f\n", ceil(3.9)); return 0; }값 -1.00 1.00 -2.00 3.00 -3.00 4.00 댓글 0 댓글목록 등록된 댓글이 없습니다.