Added example to clarify the explanation.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101379 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2002-10-25 22:56:02 +00:00
parent 3445a709f3
commit 7cd2923f99

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.fmod">
<refnamediv>
<refname>fmod</refname>
@ -22,6 +22,17 @@
<parameter>x</parameter> and a magnitude less than the magnitude of
<parameter>y</parameter>.
</para>
<example>
<title>Using <function>fmod</function></title>
<programlisting role="php">
<![CDATA[
$x = 5.7;
$y = 1.3;
$r = fmod($x, $y);
// $r equals 0.5, because 4 * 1.3 + 0.5 = 5.7
]]>
</programlisting>
</example>
</refsect1>
</refentry>