jmcastagnetto           Fri Oct 25 18:56:02 2002 EDT

  Modified files:              
    /phpdoc/en/reference/math/functions fmod.xml 
  Log:
  Added example to clarify the explanation.
  
  
Index: phpdoc/en/reference/math/functions/fmod.xml
diff -u phpdoc/en/reference/math/functions/fmod.xml:1.2 
phpdoc/en/reference/math/functions/fmod.xml:1.3
--- phpdoc/en/reference/math/functions/fmod.xml:1.2     Fri Oct 25 18:46:43 2002
+++ phpdoc/en/reference/math/functions/fmod.xml Fri Oct 25 18:56:02 2002
@@ -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>
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to