<< Previous | Next >> | |
|
float fmod( float x, float y );
Description
- Calculates modulo math.
Parameters
- x
- Dividend
- y
- Divisor
Return value
- Returns the remainder of x/y. The remaining part of
x
after all multiples ofy
have been removed. For example, ifx
is 22.7 andy
is 10.3, the integral division result is 2. Then the remainder is: 22.7 - 2 × 10.3 = 2.1.Library
- MATH.LIB
See also
- ceil, floor
Dynamic C Functions | << Previous | Next >> | rabbit.com |