fmod [C++ Reference]
Keywords: c,math,fmod
Date: 2009-06-02T09:43:17-0700

[[fmod]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## fmod

Syntax:

        #include <cmath>
        double fmod( double x, double y );

The fmod() function returns the remainder of x/y.

C++ also provides the following overloaded forms:

        #include <cmath>
        float fmod( float x, float y ); // same as fmodf() in C99
        long double fmod( long double x, long double y ); // same as fmodl() in C99

Related Topics: ceil, fabs, floor

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •