mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
3445a709f3
commit
7cd2923f99
1 changed files with 12 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue