php fmod() function
Translation results:
英[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() functionsyntax
Function: The function of fmod() function is the remainder after dividing two values
Syntax: fmod(X,Y)
Parameters:
Parameters | Description |
X | Required, X is the divisor |
Y | Required, the dividend, if Y is 0, the fmod return value is X; |
Description: Return the remainder of parameter X/Y
php fmod() functionexample
<?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