Namespaces
Variants
Views
Actions

remainder

From cppreference.com
< c‎ | numeric‎ | math
Revision as of 11:24, 15 August 2013 by P12 (Talk | contribs)

 
 
 
Common mathematical functions
Functions
Basic operations
remainder
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)(C99)(C99)
Exponential functions
(C99)
(C99)
(C99)
(C99)
Power functions
(C99)
(C99)
Trigonometric and hyperbolic functions
(C99)
(C99)
(C99)
Error and gamma functions
(C99)
(C99)
(C99)
(C99)
Nearest integer floating point operations
(C99)(C99)(C99)
(C99)
(C99)(C99)(C99)
Floating point manipulation functions
(C99)(C99)
(C99)
(C99)
Classification
(C99)
(C99)
(C99)
Macro constants
 
Defined in header <math.h>
float       remainderf( float x, float y );
(since C99)
double      remainder( double x, double y );
(since C99)
long double remainderl( long double x, long double y );
(since C99)

Computes the remainder of the floating point division operation x/y. In difference to fmod(), the return type will be negative if fmod(x, y)>y/2.

Parameters

x, y - floating point values

Return value

Remainder of dividing arguments

See also

(C99)(C99)
computes remainder of the floating-point division operation
(function) [edit]
computes quotient and remainder of integer division
(function) [edit]
C++ documentation for remainder