double remainder(double x, double y); 나머지
float remainderf(float x, float y); 나머지
long double remainderl(long double x, long double y); 나머지
입력 매개 변수 리스트
x 실수
반환 값
x/y 의 나머지
사용 예
1 2 3 4 5 6 7 8 9 10 11 12 13 |
//C언어 표준 라이브러리 함수 가이드 //double remainder(double x, double y); 나머지 //float remainderf(float x, float y); 나머지 //long double remainderl(long double x, long double y); 나머지 #include <math.h> #include <stdio.h> int main(void) { printf("%f\n", remainder(8.642,1.4)); printf("%f\n", remainder(1.569,1.2)); return 0; } |
출력
1 2 |
0.242000 0.369000 |