Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

remquo, remquof, remquol - remainder from division

&pagelevel(4)&pagelevel

Syntax

#include <math.h>

C11
double remquo(double x, double y, int *quo);
float remquof(float x, float y, int *quo);
long double remquol(long double x, long double y, int *quo); (End)

Description

These functions compute the same remainder as the remainder()-functions, respectively.

In the variable pointed to by quo, they store the value of the division x/y modulo 2**31 with the sign of the quotient.

Return val.

Floating-point remainder = x-ny



if y != 0.

 

HUGE_VAL
HUGE_VALF
HUGE_VALL

depending on the function type, if y = 0.                       
errno wird gesetzt, um den Fehler anzuzeigen.

Errors

remquo(), remquof() and remquol() will fail if:


EDOM

y = 0 .

See also

remainder()math.h.