剰余関数

インテル® 数値演算ライブラリは、次の剰余関数をサポートしています:

FMOD

説明: fmod 関数は、整数 n の値 x-n*y を返します。y が非ゼロの場合、その結果は、x と同じ符号を持ち、y の絶対値より小さい値になります。

errno: EDOM、x = 0 の場合

呼び出しインターフェイス:
double fmod(double x, double y);
long double fmodl(long double x, long double y);
float fmodf(float x, float y);

REMAINDER

説明: remainder 関数は、IEEE 標準によって求められる x REM y の値を返します。

呼び出しインターフェイス:
double remainder(double x, double y);
long double remainderl(long double x, long double y);
float remainderf(float x, float y);

REMQUO

説明: remquo 関数は、x REM y の値を返します。quo で指定されたオブジェクトで、関数は、符号が x/y の符号で絶対値が x/y の整数の商の合同剰余 224 の値をストアします。n は 3 以上の実装定義された整数です。

呼び出しインターフェイス:
double remquo(double x, double y, int *quo);
long double remquol(long double x, long double y, int *quo);
float remquof(float x, float y, int *quo);