cvs: phpdoc-zh /reference/math/functions round.xml srand.xml

From: Date: Fri, 12 Aug 2005 03:25:03 +0000
Subject: cvs: phpdoc-zh /reference/math/functions round.xml srand.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2198@lists.php.net to get a copy of this message
lm92 Thu Aug 11 23:25:03 2005 EDT Modified files: /phpdoc-zh/reference/math/functions round.xml srand.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/math/functions/round.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/math/functions/round.xml diff -u phpdoc-zh/reference/math/functions/round.xml:1.2 phpdoc-zh/reference/math/functions/round.xml:1.3 --- phpdoc-zh/reference/math/functions/round.xml:1.2 Mon Aug 18 21:55:08 2003 +++ phpdoc-zh/reference/math/functions/round.xml Thu Aug 11 23:24:59 2005 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> +<!-- CREDITS: lm92 --> <refentry id="function.round"> <refnamediv> <refname>round</refname> @@ -31,13 +32,14 @@ echo round(3.6, 0); // 4 echo round(1.95583, 2); // 1.96 echo round(1241757, -3); // 1242000 -echo round(5.045, 2); // 5.04 +echo round(5.045, 2); // 5.05 echo round(5.055, 2); // 5.06 ?> ]]> </programlisting> </example> </para> + <!-- It's not true <para> <caution> <simpara> @@ -47,6 +49,7 @@ </simpara> </caution> </para> + --> <para> <note> <simpara> @@ -58,8 +61,8 @@ <para> <note> <simpara> - <parameter>precision</parameter> ²ÎÊý½öÔÚ - PHP 4 ÖпÉÓᣠ+ <parameter>precision</parameter> ²ÎÊýÊÇÔÚ + PHP 4 Öб»ÒýÈëµÄ¡£ </simpara> </note> </para> http://cvs.php.net/diff.php/phpdoc-zh/reference/math/functions/srand.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/math/functions/srand.xml diff -u phpdoc-zh/reference/math/functions/srand.xml:1.2 phpdoc-zh/reference/math/functions/srand.xml:1.3 --- phpdoc-zh/reference/math/functions/srand.xml:1.2 Mon Aug 18 21:55:08 2003 +++ phpdoc-zh/reference/math/functions/srand.xml Thu Aug 11 23:24:59 2005 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- CREDITS: lm92 --> <refentry id="function.srand"> <refnamediv> <refname>srand</refname> @@ -11,16 +12,21 @@ <title>˵Ã÷</title> <methodsynopsis> <type>void</type><methodname>srand</methodname> - <methodparam><type>int</type><parameter>seed</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>seed</parameter></methodparam> </methodsynopsis> <para> - Óà <parameter>seed</parameter> ²¥ÏÂËæ»úÊý·¢ÉúÆ÷ÖÖ×Ó¡£ - <informalexample> + Óà <parameter>seed</parameter> ²¥ÏÂËæ»úÊý·¢ÉúÆ÷ÖÖ×Ó¡£´Ó PHP 4.2.0 + °æ¿ªÊ¼£¬<parameter>seed</parameter> ²ÎÊý±äΪ¿ÉÑ¡Ïµ±¸ÃÏîΪ¿Õʱ£¬»á±»ÉèÎªËæÊ±Êý¡£ + </para> + <para> + <example> + <title><function>srand</function> ·¶Àý</title> <programlisting role="php"> <![CDATA[ <?php // seed with microseconds -function make_seed() { +function make_seed() +{ list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } @@ -29,7 +35,7 @@ ?> ]]> </programlisting> - </informalexample> + </example> </para> &note.randomseed; <simpara>

« previous php.doc.zh (#2198) next »