이름공간
변수
행위

std::remainder

cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
Common mathematical functions
Functions
Basic operations
remainder
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Exponential functions
(C++11)
(C++11)
(C++11)
(C++11)
Power functions
(C++11)
(C++11)
Trigonometric and hyperbolic functions
(C++11)
(C++11)
(C++11)
Error and gamma functions
(C++11)
(C++11)
(C++11)
(C++11)
Nearest integer floating point operations
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Floating point manipulation functions
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classification/Comparison
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Macro constants
(C++11)(C++11)(C++11)(C++11)(C++11)
 
<cmath> 에 정의되어 있음.
float       remainder( float x, float y );
(1) (since C++11)
double      remainder( double x, double y );
(2) (since C++11)
long double remainder( long double x, long double y );
(3) (since C++11)
Promoted    remainder( Arithmetic x, Arithmetic y );
(4) (since C++11)

부동 소수점 나누기 연산 x/y의 나머지를 계산합니다. fmod와의 차이는 결과가 fmod(x, y)>y/2일때는 음수가 된다는 것입니다.

4) ���자가 정수 타입인 경우 double로 캐스팅합니다. 인자 중에 long double 타입이 있으면 리턴 타입은 long double이 되고 그 외에는 double을 리턴합니다.

[편집] Parameters

x, y - 부동 소수점 값

[편집] Return value

인자를 나눈 나머지

[편집] See also

remainder of the floating point division operation
(function) [edit]
the quotient and remainder of integer division
(function) [edit]