cvs: phpdoc-fr /reference/math constants.xml reference.xml /reference/math/functions abs.xml acos.xml acosh.xml asin.xml asinh.xml atan.xml atan2.xml
atanh.xml base-convert.xml bindec.xml ceil.xml cos.xml cosh.xml decbin.xml dechex.xml decoct.xml deg2rad.xml exp.xml expm1.xml floor.xml fmod.xml
getrandmax.xml hexdec.xml hypot.xml is-finite.xml is-infinite.xml is-nan.xml lcg-value.xml log.xml log10.xml log1p.xml max.xml min.xml
mt-getrandmax.xml mt-rand.xml mt-srand.xml octdec.xml pi.xml pow.xml rad2deg.xml rand.xml round.xml sin.xml sinh.xml sqrt.xml srand.xml tan.xml
tanh.xml

From: Date: Mon, 03 May 2004 15:11:47 +0000
Subject: cvs: phpdoc-fr /reference/math constants.xml reference.xml /reference/math/functions abs.xml acos.xml acosh.xml asin.xml asinh.xml atan.xml atan2.xml
atanh.xml base-convert.xml bindec.xml ceil.xml cos.xml cosh.xml decbin.xml dechex.xml decoct.xml deg2rad.xml exp.xml expm1.xml floor.xml fmod.xml
getrandmax.xml hexdec.xml hypot.xml is-finite.xml is-infinite.xml is-nan.xml lcg-value.xml log.xml log10.xml log1p.xml max.xml min.xml
mt-getrandmax.xml mt-rand.xml mt-srand.xml octdec.xml pi.xml pow.xml rad2deg.xml rand.xml round.xml sin.xml sinh.xml sqrt.xml srand.xml tan.xml
tanh.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2406@lists.php.net to get a copy of this message
yannick Mon May 3 11:11:47 2004 EDT Modified files: /phpdoc-fr/reference/math/functions abs.xml acosh.xml acos.xml asinh.xml asin.xml atan2.xml atanh.xml atan.xml base-convert.xml bindec.xml ceil.xml cosh.xml cos.xml decbin.xml dechex.xml decoct.xml deg2rad.xml expm1.xml exp.xml floor.xml fmod.xml getrandmax.xml hexdec.xml hypot.xml is-finite.xml is-infinite.xml is-nan.xml lcg-value.xml log10.xml log1p.xml log.xml max.xml min.xml mt-getrandmax.xml mt-rand.xml mt-srand.xml octdec.xml pi.xml pow.xml rad2deg.xml rand.xml round.xml sinh.xml sin.xml sqrt.xml srand.xml tanh.xml tan.xml /phpdoc-fr/reference/math constants.xml reference.xml Log: synch with EN Revision

http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/abs.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/abs.xml diff -u phpdoc-fr/reference/math/functions/abs.xml:1.6 phpdoc-fr/reference/math/functions/abs.xml:1.7 --- phpdoc-fr/reference/math/functions/abs.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/abs.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'abs' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.abs"> <refnamediv> <refname>abs</refname> @@ -26,9 +23,11 @@ <title>Exemple avec <function>abs</function></title> <programlisting role="php"> <![CDATA[ +<?php $abs = abs(-4.2); // $abs = 4.2; (double/float) $abs2 = abs(5); // $abs2 = 5; (integer) $abs3 = abs(-5); // $abs3 = 5; (integer) +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/acosh.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/acosh.xml diff -u phpdoc-fr/reference/math/functions/acosh.xml:1.5 phpdoc-fr/reference/math/functions/acosh.xml:1.6 --- phpdoc-fr/reference/math/functions/acosh.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/acosh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'acosh' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.acosh"> <refnamediv> <refname>acosh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/acos.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/acos.xml diff -u phpdoc-fr/reference/math/functions/acos.xml:1.5 phpdoc-fr/reference/math/functions/acos.xml:1.6 --- phpdoc-fr/reference/math/functions/acos.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/acos.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'acos' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.acos"> <refnamediv> <refname>acos</refname> @@ -21,7 +18,7 @@ <function>acos</function> est la fonction inverse de <function>cos</function>, ce qui signifie que <literal>a==cos(acos(a))</literal> pour toute valeur qui soit - dans l'intervalle de validité de <function>acos</function>'. + dans l'intervalle de validité de <function>acos</function>. </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/asinh.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/asinh.xml diff -u phpdoc-fr/reference/math/functions/asinh.xml:1.5 phpdoc-fr/reference/math/functions/asinh.xml:1.6 --- phpdoc-fr/reference/math/functions/asinh.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/asinh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'asinh' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.asinh"> <refnamediv> <refname>asinh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/asin.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/asin.xml diff -u phpdoc-fr/reference/math/functions/asin.xml:1.5 phpdoc-fr/reference/math/functions/asin.xml:1.6 --- phpdoc-fr/reference/math/functions/asin.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/asin.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'asin' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.asin"> <refnamediv> <refname>asin</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/atan2.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/atan2.xml diff -u phpdoc-fr/reference/math/functions/atan2.xml:1.6 phpdoc-fr/reference/math/functions/atan2.xml:1.7 --- phpdoc-fr/reference/math/functions/atan2.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/atan2.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'atan2' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.atan2"> <refnamediv> <refname>atan2</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/atanh.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/atanh.xml diff -u phpdoc-fr/reference/math/functions/atanh.xml:1.5 phpdoc-fr/reference/math/functions/atanh.xml:1.6 --- phpdoc-fr/reference/math/functions/atanh.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/atanh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'atanh' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.atanh"> <refnamediv> <refname>atanh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/atan.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/atan.xml diff -u phpdoc-fr/reference/math/functions/atan.xml:1.5 phpdoc-fr/reference/math/functions/atan.xml:1.6 --- phpdoc-fr/reference/math/functions/atan.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/atan.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'atan' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.atan"> <refnamediv> <refname>atan</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/base-convert.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/base-convert.xml diff -u phpdoc-fr/reference/math/functions/base-convert.xml:1.6 phpdoc-fr/reference/math/functions/base-convert.xml:1.7 --- phpdoc-fr/reference/math/functions/base-convert.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/base-convert.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'base-convert' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.base-convert"> <refnamediv> <refname>base_convert</refname> @@ -33,20 +30,30 @@ <programlisting role="php"> <![CDATA[ <?php - $binary = base_convert($hexadecimal, 16, 2); +$hexadecimal = 'A37334'; +echo base_convert($hexadecimal, 16, 2); ?> ]]> </programlisting> <para> - affichera + affichera : </para> - <programlisting> + <screen> <![CDATA[ 101000110111001100110100 ]]> - </programlisting> + </screen> </example> </para> + <warning> + <simpara> + <function>base_convert</function> perdra la précision sur les grands nombres dû + à la propriété interne des types "double" et "float". + Merci de regarder la section sur les + <link linkend="language.types.float">nombres à virgule flottante</link> dans + ce manuel pour plus d'informations. + </simpara> + </warning> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/bindec.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/bindec.xml diff -u phpdoc-fr/reference/math/functions/bindec.xml:1.6 phpdoc-fr/reference/math/functions/bindec.xml:1.7 --- phpdoc-fr/reference/math/functions/bindec.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/bindec.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'bindec' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.bindec"> <refnamediv> <refname>bindec</refname> @@ -26,6 +23,31 @@ 2147483647 en décimal. </para> <para> + <example> + <title>Exemple avec <function>bindec</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bindec('110011') . "\n"; +echo bindec('000110011') . "\n"; + +echo bindec('111'); +?> +]]> + </programlisting> + <para> + L'exemple suivant affichera : + </para> + <screen> +<![CDATA[ +51 +51 +7 +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>decbin</function>, <function>octdec</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/ceil.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/ceil.xml diff -u phpdoc-fr/reference/math/functions/ceil.xml:1.6 phpdoc-fr/reference/math/functions/ceil.xml:1.7 --- phpdoc-fr/reference/math/functions/ceil.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/ceil.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'ceil' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ceil"> <refnamediv> <refname>ceil</refname> @@ -22,6 +19,8 @@ La valeur retournée est un nombre à virgule flottante (<type>float</type>), car ces nombres peuvent être plus grands que les entiers. + </para> + <para> <example> <title>Exemple avec <function>ceil</function></title> <programlisting role="php"> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/cosh.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/cosh.xml diff -u phpdoc-fr/reference/math/functions/cosh.xml:1.4 phpdoc-fr/reference/math/functions/cosh.xml:1.5 --- phpdoc-fr/reference/math/functions/cosh.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/cosh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'cosh' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.cosh"> <refnamediv> <refname>cosh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/cos.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/cos.xml diff -u phpdoc-fr/reference/math/functions/cos.xml:1.4 phpdoc-fr/reference/math/functions/cos.xml:1.5 --- phpdoc-fr/reference/math/functions/cos.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/cos.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'cos' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.cos"> <refnamediv> <refname>cos</refname> @@ -20,6 +17,20 @@ (<parameter>arg</parameter> en radians). </para> <para> + <example> + <title>Exemple avec <function>cos</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo cos(M_PI); // -1 + +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>acos</function>, <function>sin</function> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/decbin.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/decbin.xml diff -u phpdoc-fr/reference/math/functions/decbin.xml:1.6 phpdoc-fr/reference/math/functions/decbin.xml:1.7 --- phpdoc-fr/reference/math/functions/decbin.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/decbin.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'decbin' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.decbin"> <refnamediv> <refname>decbin</refname> @@ -22,6 +19,28 @@ en décimal, ce qui donne une série de 31 uns (1). </para> <para> + <example> + <title>Exemple avec <function>decbin</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo decbin(12) . "\n"; +echo decbin(26); +?> +]]> + </programlisting> + <para> + L'exemple précédent affichera : + </para> + <screen> +<![CDATA[ +1100 +11010 +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>bindec</function>, <function>decoct</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/dechex.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/dechex.xml diff -u phpdoc-fr/reference/math/functions/dechex.xml:1.6 phpdoc-fr/reference/math/functions/dechex.xml:1.7 --- phpdoc-fr/reference/math/functions/dechex.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/dechex.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'dechex' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.dechex"> <refnamediv> <refname>dechex</refname> @@ -22,6 +19,28 @@ converti est 2147483647 en décimal, ce qui donnera "7fffffff". </para> <para> + <example> + <title>Exemple aec <function>dechex</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo dechex(10) . "\n"; +echo dechex(47); +?> +]]> + </programlisting> + <para> + L'exemple précédent affichera : + </para> + <screen> +<![CDATA[ +a +2f +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>hexdec</function>, <function>decbin</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/decoct.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/decoct.xml diff -u phpdoc-fr/reference/math/functions/decoct.xml:1.6 phpdoc-fr/reference/math/functions/decoct.xml:1.7 --- phpdoc-fr/reference/math/functions/decoct.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/decoct.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'decoct' in en/ tree in rev 1.8 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.decoct"> <refnamediv> <refname>decoct</refname> @@ -23,6 +20,28 @@ donnera "17777777777". </para> <para> + <example> + <title>Exemple avec <function>decoct</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo decoct(15) . "\n"; +echo decoct(264); +?> +]]> + </programlisting> + <para> + L'exemple précédent affichera : + </para> + <screen> +<![CDATA[ +17 +410 +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>octdec</function>, <function>decbin</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/deg2rad.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/deg2rad.xml diff -u phpdoc-fr/reference/math/functions/deg2rad.xml:1.4 phpdoc-fr/reference/math/functions/deg2rad.xml:1.5 --- phpdoc-fr/reference/math/functions/deg2rad.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/deg2rad.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'deg2rad' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.deg2rad"> <refnamediv> <refname>deg2rad</refname> @@ -22,6 +19,21 @@ degrés en radians. </para> <para> + <example> + <title>Exemple avec <function>deg2rad</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo deg2rad(45); // 0.785398163397 +var_dump(deg2rad(45) === M_PI_4); // bool(true) + +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>rad2deg</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/expm1.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/expm1.xml diff -u phpdoc-fr/reference/math/functions/expm1.xml:1.3 phpdoc-fr/reference/math/functions/expm1.xml:1.4 --- phpdoc-fr/reference/math/functions/expm1.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/expm1.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.63 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.expm1"> <refnamediv> <refname>expm1</refname> @@ -20,6 +19,7 @@ <para> &warn.undocumented.func; </para> + &note.no-windows; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/exp.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/exp.xml diff -u phpdoc-fr/reference/math/functions/exp.xml:1.5 phpdoc-fr/reference/math/functions/exp.xml:1.6 --- phpdoc-fr/reference/math/functions/exp.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/exp.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'exp' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.exp"> <refnamediv> <refname>exp</refname> @@ -21,6 +18,33 @@ e élevé à la puissance <parameter>arg</parameter>. </para> + <note> + <para> + 'e' est le logarithme naturel, ou approximativement 2.718282. + </para> + </note> + <para> + <example> + <title>Exemple avec <function>exp</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo exp(12) . "\n"; +echo exp(5.7); +?> +]]> + </programlisting> + <para> + L'exemple précédent affchera : + </para> + <screen> +<![CDATA[ +1.6275E+005 +298.87 +]]> + </screen> + </example> + </para> <para> Voir aussi <function>pow</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/floor.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/floor.xml diff -u phpdoc-fr/reference/math/functions/floor.xml:1.6 phpdoc-fr/reference/math/functions/floor.xml:1.7 --- phpdoc-fr/reference/math/functions/floor.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/floor.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'floor' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.floor"> <refnamediv> <refname>floor</refname> @@ -21,17 +18,19 @@ est un nombre à virgule flottante, (<type>float</type>) car ces nombres peuvent être plus grands que les entiers. </simpara> + <para> <example> <title>Exemple avec <function>floor</function></title> <programlisting role="php"> <![CDATA[ <?php - echo floor(4.3); // 4 - echo floor(9.999); // 9 +echo floor(4.3); // 4 +echo floor(9.999); // 9 ?> ]]> </programlisting> </example> + </para> <simpara> Voir aussi <function>ceil</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/fmod.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/fmod.xml diff -u phpdoc-fr/reference/math/functions/fmod.xml:1.3 phpdoc-fr/reference/math/functions/fmod.xml:1.4 --- phpdoc-fr/reference/math/functions/fmod.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/fmod.xml Mon May 3 11:11:45 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.fmod"> <refnamediv> <refname>fmod</refname> @@ -23,17 +23,21 @@ <parameter>x</parameter> est une taille inférieure à <parameter>y</parameter>. </para> + <para> <example> <title>Exemple avec <function>fmod</function></title> <programlisting role="php"> <![CDATA[ +<?php $x = 5.7; $y = 1.3; $r = fmod($x, $y); // $r égale 0.5, car 4 * 1.3 + 0.5 = 5.7 +?> ]]> </programlisting> </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/getrandmax.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/getrandmax.xml diff -u phpdoc-fr/reference/math/functions/getrandmax.xml:1.5 phpdoc-fr/reference/math/functions/getrandmax.xml:1.6 --- phpdoc-fr/reference/math/functions/getrandmax.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/getrandmax.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'getrandmax' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.getrandmax"> <refnamediv> <refname>getrandmax</refname> @@ -22,9 +19,7 @@ <simpara> Voir aussi <function>rand</function>, - <function>srand</function> - <function>mt_rand</function>, - <function>mt_srand</function> et + <function>srand</function> et <function>mt_getrandmax</function>. </simpara> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/hexdec.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/math/functions/hexdec.xml diff -u phpdoc-fr/reference/math/functions/hexdec.xml:1.7 phpdoc-fr/reference/math/functions/hexdec.xml:1.8 --- phpdoc-fr/reference/math/functions/hexdec.xml:1.7 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/hexdec.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'hexdec' in en/ tree in rev 1.16 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.hexdec"> <refnamediv> <refname>hexdec</refname> @@ -32,12 +29,13 @@ <programlisting role="php"> <![CDATA[ <?php - var_dump(hexdec("Hop comme ceci")); - var_dump(hexdec("0000c000e0cec0")); - var_dump(hexdec("c000e0cec0")); +var_dump(hexdec("Hop comme ceci")); +var_dump(hexdec("0000c000e0cec0")); +var_dump(hexdec("c000e0cec0")); // les deux affichent "int(14732992)" - var_dump(hexdec("aussi")); - var_dump(hexdec("a0000")); + +var_dump(hexdec("aussi")); +var_dump(hexdec("a0000")); // les deux affichent "int(655360)" ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/hypot.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/hypot.xml diff -u phpdoc-fr/reference/math/functions/hypot.xml:1.3 phpdoc-fr/reference/math/functions/hypot.xml:1.4 --- phpdoc-fr/reference/math/functions/hypot.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/hypot.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.72 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.hypot"> <refnamediv> <refname>hypot</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/is-finite.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/is-finite.xml diff -u phpdoc-fr/reference/math/functions/is-finite.xml:1.3 phpdoc-fr/reference/math/functions/is-finite.xml:1.4 --- phpdoc-fr/reference/math/functions/is-finite.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/is-finite.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.72 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.is-finite"> <refnamediv> <refname>is_finite</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/is-infinite.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/is-infinite.xml diff -u phpdoc-fr/reference/math/functions/is-infinite.xml:1.3 phpdoc-fr/reference/math/functions/is-infinite.xml:1.4 --- phpdoc-fr/reference/math/functions/is-infinite.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/is-infinite.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.72 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.is-infinite"> <refnamediv> <refname>is_infinite</refname> @@ -15,7 +14,8 @@ <methodparam><type>float</type><parameter>val</parameter></methodparam> </methodsynopsis> <para> - <methodname>is_infinite</methodname> &true; si <parameter>val</parameter> est + <methodname>is_infinite</methodname> retourne &true; + si <parameter>val</parameter> est infini (positif ou négatif), comme par exemple le résultat de <literal>log(0)</literal> ou une valeur qui est trop grande pour être représenté par un nombre à virgule flottante sur cette plate-forme. http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/is-nan.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/is-nan.xml diff -u phpdoc-fr/reference/math/functions/is-nan.xml:1.3 phpdoc-fr/reference/math/functions/is-nan.xml:1.4 --- phpdoc-fr/reference/math/functions/is-nan.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/is-nan.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.63 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.is-nan"> <refnamediv> <refname>is_nan</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/lcg-value.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/lcg-value.xml diff -u phpdoc-fr/reference/math/functions/lcg-value.xml:1.4 phpdoc-fr/reference/math/functions/lcg-value.xml:1.5 --- phpdoc-fr/reference/math/functions/lcg-value.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/lcg-value.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'lcg-value' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.lcg-value"> <refnamediv> <refname>lcg_value</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/log10.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/log10.xml diff -u phpdoc-fr/reference/math/functions/log10.xml:1.4 phpdoc-fr/reference/math/functions/log10.xml:1.5 --- phpdoc-fr/reference/math/functions/log10.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/log10.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'log10' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.log10"> <refnamediv> <refname>log10</refname> @@ -19,6 +16,10 @@ <function>log10</function> retourne le logarithme en base 10 de <parameter>arg</parameter>. </para> + <simpara> + Voir aussi + <function>log</function> + </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/log1p.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/functions/log1p.xml diff -u phpdoc-fr/reference/math/functions/log1p.xml:1.3 phpdoc-fr/reference/math/functions/log1p.xml:1.4 --- phpdoc-fr/reference/math/functions/log1p.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/functions/log1p.xml Mon May 3 11:11:45 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/math.xml, last change in rev 1.63 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.log1p"> <refnamediv> <refname>log1p</refname> @@ -20,6 +19,7 @@ <para> &warn.undocumented.func; </para> + &note.no-windows; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/log.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/log.xml diff -u phpdoc-fr/reference/math/functions/log.xml:1.5 phpdoc-fr/reference/math/functions/log.xml:1.6 --- phpdoc-fr/reference/math/functions/log.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/log.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'log' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="function.log"> <refnamediv> <refname>log</refname> @@ -26,7 +23,7 @@ <note> <para> Le paramètre <parameter>base</parameter> a été ajouté en - PHP version 4.3.0. + &php; version 4.3.0. </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/max.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/math/functions/max.xml diff -u phpdoc-fr/reference/math/functions/max.xml:1.7 phpdoc-fr/reference/math/functions/max.xml:1.8 --- phpdoc-fr/reference/math/functions/max.xml:1.7 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/max.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'max' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.max"> <refnamediv> <refname>max</refname> @@ -35,17 +32,19 @@ et retournera alors le plus grand d'entre eux. Le nombre d'arguments est alors illimité. </para> - <para> - Si au moins une valeur est un nombre à virgule flottante, elles seront toutes - traitées comme des nombres à virgule flottante, et un nombre - à virgule flottante sera retourné. - Si aucune valeur n'est un nombre à virgule flottante, elles seront traitées - comme des entiers, et un entier sera retourné. - </para> + <note> <para> - <example> - <title>Exemple d'utilisation de <function>max</function></title> - <programlisting role="php"> + Si au moins une valeur est un nombre à virgule flottante, elles seront toutes + traitées comme des nombres à virgule flottante, et un nombre + à virgule flottante sera retourné. + Si aucune valeur n'est un nombre à virgule flottante, elles seront traitées + comme des entiers, et un entier sera retourné. + </para> + </note> + <para> + <example> + <title>Exemple d'utilisation de <function>max</function></title> + <programlisting role="php"> <![CDATA[ <?php echo max(1, 3, 5, 6, 7); // 7 @@ -64,14 +63,14 @@ $val = max('string', array(2, 5, 7), 42); // array(2, 5, 7) ?> ]]> - </programlisting> - </example> - </para> - <para> - Voir aussi - <function>min</function> et - <function>count</function>. - </para> + </programlisting> + </example> + </para> + <para> + Voir aussi + <function>min</function> et + <function>count</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/min.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/math/functions/min.xml diff -u phpdoc-fr/reference/math/functions/min.xml:1.8 phpdoc-fr/reference/math/functions/min.xml:1.9 --- phpdoc-fr/reference/math/functions/min.xml:1.8 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/min.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'min' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.min"> <refnamediv> <refname>min</refname> @@ -43,9 +40,10 @@ Si aucune valeur n'est un nombre à virgule flottante, elles seront traitées comme des entiers, et un entier sera retourné. </para> + <para> <example> <title>Exemples avec <function>min</function></title> - <programlisting> + <programlisting role="php"> <![CDATA[ <?php echo min(2, 3, 1, 6, 7); // 1 @@ -55,14 +53,6 @@ echo min('bonjour', 0); // bonjour echo min('bonjour', -1); // -1 -// Vous pouvez implémenter votre propre gestion d'erreur -// en cas d'échec (une variable peut ne pas exister) -if (!$min_value = @min($a, $b, $c)) { - echo "Impossible de trouver la valeur minimale, essayez à nouveau!."; -} else { - echo "La valeur minimale est $min_value"; -} - // Avec plusieurs tableaux, min() fait les comparaisons de gauche à droite // dans notre exemple : 2 == 2, mais 4 < 5 $val = min(array(2, 4, 8), array(2, 5, 1)); // array(2, 4, 8) @@ -74,6 +64,7 @@ ]]> </programlisting> </example> + </para> <para> Voir aussi <function>max</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/mt-getrandmax.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/mt-getrandmax.xml diff -u phpdoc-fr/reference/math/functions/mt-getrandmax.xml:1.5 phpdoc-fr/reference/math/functions/mt-getrandmax.xml:1.6 --- phpdoc-fr/reference/math/functions/mt-getrandmax.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/mt-getrandmax.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'mt-getrandmax' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.mt-getrandmax"> <refnamediv> <refname>mt_getrandmax</refname> @@ -22,9 +19,7 @@ <simpara> Voir aussi <function>mt_rand</function>, - <function>mt_srand</function> - <function>rand</function>, - <function>srand</function> et + <function>mt_srand</function> et <function>getrandmax</function>. </simpara> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/mt-rand.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/mt-rand.xml diff -u phpdoc-fr/reference/math/functions/mt-rand.xml:1.6 phpdoc-fr/reference/math/functions/mt-rand.xml:1.7 --- phpdoc-fr/reference/math/functions/mt-rand.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/mt-rand.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'mt-rand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="function.mt-rand"> <refnamediv> <refname>mt_rand</refname> @@ -20,7 +17,7 @@ </methodsynopsis> <simpara> De nombreux générateurs de nombres aléatoires - provenant de vieilles bibliothèques libcs ont des comportement + provenant de vieilles bibliothèques libcs ont des comportements douteux et sont très lents. Par défaut, PHP utilise le générateur de nombres aléatoires de libc avec la fonction <function>rand</function>. <function>mt_rand</function> est une @@ -38,6 +35,31 @@ Pour obtenir un nombre entre 5 et 15 inclus, il faut utiliser <literal>mt_rand(5,15)</literal>. </simpara> + <para> + <example> + <title>Exemple avec <function>mt_rand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo mt_rand() . "\n"; +echo mt_rand() . "\n"; + +echo mt_rand(5, 15); +?> +]]> + </programlisting> + <para> + L'exemple ci-dessus affichera quelque chose comme : + </para> + <screen> +<![CDATA[ +1604716014 +1478613278 +6 +]]> + </screen> + </example> + </para> &note.randomseed; <note> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/mt-srand.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/mt-srand.xml diff -u phpdoc-fr/reference/math/functions/mt-srand.xml:1.6 phpdoc-fr/reference/math/functions/mt-srand.xml:1.7 --- phpdoc-fr/reference/math/functions/mt-srand.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/mt-srand.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'mt-srand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.mt-srand"> <refnamediv> <refname>mt_srand</refname> @@ -19,19 +16,26 @@ <function>mt_srand</function> initialise une meilleure valeur aléatoire avec <parameter>seed</parameter>. Depuis PHP 4.2.0, le paramètre <parameter>seed</parameter> est - devenu optionnel et est généré par PHP si il + devenu optionnel et est généré par &php; si il n'est pas renseigné. + </para> + <para> <example> <title>Exemple avec <function>mt_srand</function></title> <programlisting role="php"> <![CDATA[ +<?php + // initialisation avec des microsecondes -function make_seed() { +function make_seed() +{ list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand(); + +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/octdec.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/octdec.xml diff -u phpdoc-fr/reference/math/functions/octdec.xml:1.6 phpdoc-fr/reference/math/functions/octdec.xml:1.7 --- phpdoc-fr/reference/math/functions/octdec.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/octdec.xml Mon May 3 11:11:45 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'octdec' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.octdec"> <refnamediv> <refname>octdec</refname> - <refpurpose>Convertit d'octal en décimal</refpurpose> + <refpurpose>Convertion d'octal en décimal</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -23,6 +20,28 @@ ce qui donnera "2147483647". </para> <para> + <example> + <title>Exemple avec <function>octdec</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +echo octdec('77') . "\n"; +echo octdec(decoct(45)); +?> +]]> + </programlisting> + <para> + L'exemple ci-dessus affichera : + </para> + <screen> +<![CDATA[ +63 +45 +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>decoct</function>, <function>bindec</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/pi.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/pi.xml diff -u phpdoc-fr/reference/math/functions/pi.xml:1.5 phpdoc-fr/reference/math/functions/pi.xml:1.6 --- phpdoc-fr/reference/math/functions/pi.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/pi.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'pi' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.pi"> <refnamediv> <refname>pi</refname> @@ -31,8 +28,8 @@ <programlisting role="php"> <![CDATA[ <?php - echo pi(); // 3.1415926535898 - echo M_PI; // 3.1415926535898 +echo pi(); // 3.1415926535898 +echo M_PI; // 3.1415926535898 ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/pow.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/pow.xml diff -u phpdoc-fr/reference/math/functions/pow.xml:1.5 phpdoc-fr/reference/math/functions/pow.xml:1.6 --- phpdoc-fr/reference/math/functions/pow.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/pow.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'pow' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.pow"> <refnamediv> <refname>pow</refname> @@ -23,16 +20,23 @@ </para> <para> Si le calcul ne peut être fait, une alerte sera affichée et - <function>pow</function> retournera &false;. + <function>pow</function> retournera &false;. Depuis &php; 4.2.0, + <function>pow</function> n'affiche plus aucun warning. </para> + <note> + <para> + &php; ne peut pas gérer une valeur négative de <parameter>base</parameter>. + PHP cannot handle negative <parameter>base</parameter>s. + </para> + </note> <example> <title>Quelques exemples avec <function>pow</function></title> <programlisting role="php"> <![CDATA[ <?php -var_dump( pow(2,8) ); // int(256) -echo pow(-1,20); // 1 +var_dump(pow(2, 8) ); // int(256) +echo pow(-1, 20); // 1 echo pow(0, 0); // 1 echo pow(-1, 5.5); // error @@ -52,8 +56,10 @@ </warning> <para> Voir aussi - <function>exp</function> et - <function>sqrt</function>. + <function>exp</function>, + <function>sqrt</function>, + <function>bcpow</function>, and + <function>gmp_pow</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/rad2deg.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/rad2deg.xml diff -u phpdoc-fr/reference/math/functions/rad2deg.xml:1.4 phpdoc-fr/reference/math/functions/rad2deg.xml:1.5 --- phpdoc-fr/reference/math/functions/rad2deg.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/rad2deg.xml Mon May 3 11:11:45 2004 @@ -1,14 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'rad2deg' in en/ tree in rev 1.8 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.rad2deg"> <refnamediv> <refname>rad2deg</refname> <refpurpose> - Convertit de radians en degrés + Convertion de radians en degrés </refpurpose> </refnamediv> <refsect1> @@ -22,6 +19,20 @@ (supposé en radians) en degrés. </para> <para> + <example> + <title>Exemple avec <function>rad2deg</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo rad2deg(M_PI_4); // 45 + +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>deg2rad</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/rand.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/rand.xml diff -u phpdoc-fr/reference/math/functions/rand.xml:1.5 phpdoc-fr/reference/math/functions/rand.xml:1.6 --- phpdoc-fr/reference/math/functions/rand.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/rand.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'rand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <refentry id="function.rand"> <refnamediv> <refname>rand</refname> @@ -23,7 +20,43 @@ Si vous voulez un nombre aléatoire entre 5 et 15 (inclus), par exemple, utilisez <literal>rand (5, 15)</literal>. </simpara> + <para> + <example> + <title>Exemple avec <function>rand</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo rand() . "\n"; +echo rand() . "\n"; + +echo rand(5, 15); +?> +]]> + </programlisting> + <para> + L'exemple ci-dessu affichera quelque chose comme : + </para> + <screen> +<![CDATA[ +7771 +22264 +11 +]]> + </screen> + </example> + </para> + <note> + <simpara> + Sur quelques plateforms (comme Windows par exemple), <constant>RAND_MAX</constant> + est seulement de 32768. Si vous désirez un nombre plus grand que 32768, en spécifiant + <parameter>min</parameter> et <parameter>max</parameter>, vous serez + autoriser à utiliser un intervalle plus grand que RAD_MAX, ou bien, utilisez la fonction + <function>mt_rand</function> à la place. + </simpara> + </note> + &note.randomseed; + <note> <para> Dans les versions antérieures à la 3.0.7 la signification http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/round.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/round.xml diff -u phpdoc-fr/reference/math/functions/round.xml:1.5 phpdoc-fr/reference/math/functions/round.xml:1.6 --- phpdoc-fr/reference/math/functions/round.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/round.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'round' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.round"> <refnamediv> <refname>round</refname> @@ -24,15 +21,6 @@ ou null (sa valeur par défaut). </para> <para> - <caution> - <simpara> - PHP ne gère par correctement les chaînes telles que <literal>"12 300,2"</literal>, - par défaut. Reportez-vous à - <link linkend="language.types.string.conversion">la conversion de chaînes</link>. - </simpara> - </caution> - </para> - <para> <example> <title>Exemple avec <function>round</function></title> <programlisting role="php"> @@ -44,21 +32,35 @@ echo round(3.6, 0); // 4 echo round(1.95583, 2); // 1.96 echo round(1241757, -3); // 1242000 +echo round(5.045, 2); // 5.05 +echo round(5.055, 2); // 5.06 ?> ]]> </programlisting> </example> </para> + <para> + <note> + <simpara> + PHP ne gère par correctement les chaînes telles que <literal>"12 300,2"</literal>, + par défaut. Reportez-vous à + <link linkend="language.types.string.conversion">la conversion de chaînes</link>. + </simpara> + </note> + </para> + <para> <note> <simpara> Le paramètre <parameter>precision</parameter> est disponible uniquement en PHP 4. </simpara> </note> + </para> <simpara> Voir aussi - <function>ceil</function> et - <function>floor</function>. + <function>ceil</function>, + <function>floor</function> et + <function>number_format</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/sinh.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/sinh.xml diff -u phpdoc-fr/reference/math/functions/sinh.xml:1.4 phpdoc-fr/reference/math/functions/sinh.xml:1.5 --- phpdoc-fr/reference/math/functions/sinh.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/sinh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'sinh' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sinh"> <refnamediv> <refname>sinh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/sin.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/sin.xml diff -u phpdoc-fr/reference/math/functions/sin.xml:1.5 phpdoc-fr/reference/math/functions/sin.xml:1.6 --- phpdoc-fr/reference/math/functions/sin.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/sin.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'sin' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.sin"> <refnamediv> <refname>sin</refname> @@ -27,8 +24,8 @@ <?php // La précision dépend de la directive precision -print sin(deg2rad(60)); // 0.866025403 ... -print sin(60); // -0.304810621 ... +echo sin(deg2rad(60)); // 0.866025403 ... +echo sin(60); // -0.304810621 ... ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/sqrt.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/functions/sqrt.xml diff -u phpdoc-fr/reference/math/functions/sqrt.xml:1.5 phpdoc-fr/reference/math/functions/sqrt.xml:1.6 --- phpdoc-fr/reference/math/functions/sqrt.xml:1.5 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/sqrt.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'sqrt' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqrt"> <refnamediv> <refname>sqrt</refname> @@ -25,9 +22,9 @@ <programlisting> <![CDATA[ <?php - // La précision dépend de votre directive precision - echo sqrt(9); // 3 - echo sqrt(10); // 3.16227766 ... +// La précision dépend de votre directive precision +echo sqrt(9); // 3 +echo sqrt(10); // 3.16227766 ... ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/srand.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/math/functions/srand.xml diff -u phpdoc-fr/reference/math/functions/srand.xml:1.6 phpdoc-fr/reference/math/functions/srand.xml:1.7 --- phpdoc-fr/reference/math/functions/srand.xml:1.6 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/srand.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'srand' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.srand"> <refnamediv> <refname>srand</refname> @@ -19,19 +16,24 @@ <function>srand</function> initialise le générateur de nombres aléatoires avec <parameter>seed</parameter>. Depuis PHP 4.2.0, le paramètre <parameter>seed</parameter> est - devenu optionnel et est généré par PHP si il n'est + devenu optionnel et est généré par &php; si il n'est pas renseigné. + </para> + <para> <example> <title>Exemple avec <function>srand</function></title> <programlisting role="php"> <![CDATA[ +<?php // initialise avec les microsecondes -function make_seed() { +function make_seed() +{ list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } srand(make_seed()); $randval = rand(); +?> ]]> </programlisting> </example> @@ -40,10 +42,8 @@ <simpara> Voir aussi <function>rand</function>, - <function>getrandmax</function>, - <function>mt_rand</function>, - <function>mt_srand</function> et - <function>mt_getrandmax</function>. + <function>getrandmax</function> et + <function>mt_srand</function>. </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/tanh.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/tanh.xml diff -u phpdoc-fr/reference/math/functions/tanh.xml:1.4 phpdoc-fr/reference/math/functions/tanh.xml:1.5 --- phpdoc-fr/reference/math/functions/tanh.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/tanh.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.11 --> -<!-- last change to 'tanh' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.tanh"> <refnamediv> <refname>tanh</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/math/functions/tan.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/math/functions/tan.xml diff -u phpdoc-fr/reference/math/functions/tan.xml:1.4 phpdoc-fr/reference/math/functions/tan.xml:1.5 --- phpdoc-fr/reference/math/functions/tan.xml:1.4 Tue Feb 24 13:11:11 2004 +++ phpdoc-fr/reference/math/functions/tan.xml Mon May 3 11:11:45 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/math.xml, last change in rev 1.15 --> -<!-- last change to 'tan' in en/ tree in rev 1.57 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.tan"> <refnamediv> <refname>tan</refname> @@ -20,6 +17,20 @@ <parameter>arg</parameter> (<parameter>arg</parameter> en radians). </para> <para> + <example> + <title>Exemple avec <function>tan</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo tan(M_PI_2); // 1 + +?> +]]> + </programlisting> + </example> + </para> + <para> Voir aussi <function>atan</function>, <function>sin</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/math/constants.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/math/constants.xml diff -u phpdoc-fr/reference/math/constants.xml:1.3 phpdoc-fr/reference/math/constants.xml:1.4 --- phpdoc-fr/reference/math/constants.xml:1.3 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/constants.xml Mon May 3 11:11:46 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="math.constants"> &reftitle.constants; &extension.constants.core; http://cvs.php.net/diff.php/phpdoc-fr/reference/math/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/math/reference.xml diff -u phpdoc-fr/reference/math/reference.xml:1.5 phpdoc-fr/reference/math/reference.xml:1.6 --- phpdoc-fr/reference/math/reference.xml:1.5 Wed Feb 25 07:37:39 2004 +++ phpdoc-fr/reference/math/reference.xml Mon May 3 11:11:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <reference id="ref.math"> <title>Mathématiques</title> <titleabbrev>Maths</titleabbrev> @@ -15,6 +15,10 @@ reportez-vous aux fonctions mathématiques sur des <link linkend="ref.bc">nombres de grande taille</link>. </para> + <simpara> + Voir également la page de ce manuel sur les + <link linkend="language.operators.arithmetic">opérateurs arithmétiques</link>. + </simpara> </section> <section id="math.requirements">
« previous php.doc.fr (#2406) next »