remainder

Computes a floating-point remainder.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  double remainder (
     double   x,   
     double   y);
  

Parameters

x

(IN) Specifies the numerator.

y

(IN) Specifies the denominator.

Return Values

If successful, returns the floating-point remainder, r= x- ny when y is nonzero.

If x is infinite or y is 0, a domain error occurs.

See Also

fmod