<< Previous | Next >>

fmod

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 of y have been removed. For example, if x is 22.7 and y 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