英[mɒd] 美[mɑ:d]

n.Modernist; modernist

adj.Modernist; trendy; extremely fashionable

abbr. Modern (equal to modern); modified (equal to moderate); modulus, absolute value (equal to modulus)

Plural: mods

php fmod() function syntax

Function: The function of fmod() function is the remainder after dividing two values ​​​​

Syntax: fmod(X,Y)

Parameters:

ParametersDescription
XRequired, X is the divisor
YRequired, the dividend, if Y is 0, the fmod return value is X;

Description: Return the remainder of parameter X/Y

php fmod() function example

<?php
$a = 5.5;
$b = 3.2;
$c = fmod($a,$b);
$i = 5;
$j = 3;
$k = fmod($i,$j);
echo $c."*****".$k;
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

2.3*****2