std::remainder
cppreference.com
<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) | |
(C++11) |
the quotient and remainder of integer division (function) |