Home Menu

fmod

Returns the floating point remainder (modulo) of the division of the arguments

Syntax

fmod ( float $x , float $y ) : float

Parameters

x

The dividend

y

The divisor

Return

The floating point remainder of x/y

Examples

<?

$x = 3.1;
$y = 1.5;

$return = fmod($x, $y);

echo $return;

?>
0.1

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms