|
|
PHP fmod() Math Functions
|
Tutorials » Php »
|
Topic |
What is fmod Function?
|
|
Explanation |
|
The "fmod()" function returns the floating point remainder (modulo) of the division of the arguments.
Syntax:
fmod(x,y)
In the above syntax "x,y" are the arguments, whose remainder is returned.
Example:
<?php
$r = fmod(7,3);
echo $r
?>
Result:
1
In the above example the numbers "7", "3" are divided and floating point remainder is returned.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|