PHP function fmod()

Availability in versions: PHP 4.2.0

Returns the floating point remainder (modulo) of the division

Parameters

Parameter Data type Default value Note
$x float not The dividend
$y float not The divisor

Return values

float

The floating point remainder of x/y

Other resources

Official fmod documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.