irc-html Wed Jan 9 18:59:53 2002 EDT
Modified files:
/phpdoc/en/functions math.xml
Log:
added example to abs(), corrected spelling errors
Index: phpdoc/en/functions/math.xml
diff -u phpdoc/en/functions/math.xml:1.65 phpdoc/en/functions/math.xml:1.66
--- phpdoc/en/functions/math.xml:1.65 Wed Jan 9 18:43:26 2002
+++ phpdoc/en/functions/math.xml Wed Jan 9 18:59:53 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.65 $ -->
+<!-- $Revision: 1.66 $ -->
<reference id="ref.math">
<title>Mathematical Functions</title>
<titleabbrev>Math</titleabbrev>
@@ -145,6 +145,16 @@
otherwise it is <type>integer</type> (as <type>float</type> usually has a
bigger value range than <type>integer</type>).
</para>
+ <example>
+ <title><function>abs</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+$abs = abs(-4.2); // $abs = 4.2; (double/float)
+$abs2 = abs(5); // $abs2 = 5; (integer)
+$abs3 = abs(-5); // $abs3 = 5; (integer)
+]]>
+ </programlisting>
+ </example>
</refsect1>
</refentry>
@@ -632,7 +642,7 @@
</funcsynopsis>
<simpara>
Returns the next lowest integer value by rounding down
- <parameter>value</parameter> if neccessary.
+ <parameter>value</parameter> if necessary.
The return value of <function>floor</function> is still of type
<type>float</type> because the value range of <type>float</type> is
usually bigger than that of <type>int</type>.- [PHP-DOC] cvs: phpdoc /en/functions math.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Stig Bakken
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Gabor Hojtsy
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Simone Cortesi
- [PHP-DOC] cvs: phpdoc /en/functions math.xml jim winstead
- [PHP-DOC] cvs: phpdoc /en/functions math.xml jim winstead
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions math.xml jim winstead
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Kenneth Schwartz
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Kenneth Schwartz
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Jan Lehnardt
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Philip Olson
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Wolfgang Drews
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Slawomir Pucia
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Simone Cortesi
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Simone Cortesi
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Philip Olson
- [PHP-DOC] cvs: phpdoc /en/functions math.xml Hartmut Holzgraefe
