cvs: phpdoc-zh /reference/math/functions ceil.xml expm1.xml floor.xml fmod.xml getrandmax.xml hexdec.xml hypot.xml

From: Date: Tue, 11 Mar 2003 10:04:08 +0000
Subject: cvs: phpdoc-zh /reference/math/functions ceil.xml expm1.xml floor.xml fmod.xml getrandmax.xml hexdec.xml hypot.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1222@lists.php.net to get a copy of this message
dallas Tue Mar 11 05:04:08 2003 EDT Added files: /phpdoc-zh/reference/math/functions expm1.xml floor.xml fmod.xml getrandmax.xml hexdec.xml hypot.xml Modified files: /phpdoc-zh/reference/math/functions ceil.xml Log: Completed.

Index: phpdoc-zh/reference/math/functions/ceil.xml diff -u phpdoc-zh/reference/math/functions/ceil.xml:1.1 phpdoc-zh/reference/math/functions/ceil.xml:1.2 --- phpdoc-zh/reference/math/functions/ceil.xml:1.1 Sun Mar 9 05:18:12 2003 +++ phpdoc-zh/reference/math/functions/ceil.xml Tue Mar 11 05:04:00 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.ceil"> @@ -15,11 +15,12 @@ </methodsynopsis> <simpara> ·µ»Ø²»Ð¡ÓÚ - <parameter>value</parameter> µÄÏÂÒ»¸öÕûÊý¡£<function>ceil</function> ·µ»ØµÄÀàÐÍÈÔÈ»ÊÇ + <parameter>value</parameter> µÄÏÂÒ»¸öÕûÊý£¬<parameter>value</parameter> + Èç¹ûÓÐСÊý²¿·ÖÔò½øÒ»Î»¡£<function>ceil</function> ·µ»ØµÄÀàÐÍÈÔÈ»ÊÇ <type>float</type>£¬ÒòΪ <type>float</type> ÖµµÄ·¶Î§Í¨³£±È <type>integer</type> Òª´ó¡£ </simpara> <example> - <title><function>ceil</function> example</title> + <title><function>ceil</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ echo ceil(4.3); // 5 Index: phpdoc-zh/reference/math/functions/expm1.xml +++ phpdoc-zh/reference/math/functions/expm1.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id='function.expm1'> <refnamediv> <refname>expm1</refname> <refpurpose> ·µ»Ø exp(number) - 1£¬ÉõÖÁµ± number µÄÖµ½Ó½üÁãÒ²ÄܼÆËã³ö׼ȷ½á¹û </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>expm1</methodname> <methodparam><type>float</type><parameter>number</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/math/functions/floor.xml +++ phpdoc-zh/reference/math/functions/floor.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.floor"> <refnamediv> <refname>floor</refname> <refpurpose>ÉáÈ¥·¨È¡Õû</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>floor</methodname> <methodparam><type>float</type><parameter>value</parameter></methodparam> </methodsynopsis> <simpara> ·µ»Ø²»´óÓÚ <parameter>value</parameter> µÄÏÂÒ»¸öÕûÊý£¬½« <parameter>value</parameter> µÄСÊý²¿·ÖÉáȥȡÕû¡£<function>floor</function> ·µ»ØµÄÀàÐÍÈÔÈ»ÊÇ <type>float</type>£¬ÒòΪ <type>float</type> ÖµµÄ·¶Î§Í¨³£±È <type>integer</type> Òª´ó¡£ </simpara> <example> <title><function>floor</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ echo floor(4.3); // 4 echo floor(9.999); // 9 ]]> </programlisting> </example> <simpara> ²Î¼û <function>ceil</function> ºÍ <function>round</function>¡£ </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/math/functions/fmod.xml +++ phpdoc-zh/reference/math/functions/fmod.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.fmod"> <refnamediv> <refname>fmod</refname> <refpurpose>·µ»Ø³ý·¨µÄ¸¡µãÊýÓàÊý</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>fmod</methodname> <methodparam><type>float</type><parameter>x</parameter></methodparam> <methodparam><type>float</type><parameter>y</parameter></methodparam> </methodsynopsis> <para> ·µ»Ø±»³ýÊý£¨<parameter>x</parameter>£©³ýÒÔ³ýÊý£¨<parameter>y</parameter>£©ËùµÃµÄ¸¡µãÊýÓàÊý¡£ÓàÊý£¨<varname>r</varname>£©µÄ¶¨ÒåÊÇ£ºx = i * y + r£¬ÆäÖÐ <varname>i</varname> ÊÇÕûÊý¡£Èç¹û <parameter>y</parameter> ÊÇ·ÇÁãÖµ£¬Ôò <varname>r</varname> ºÍ <parameter>x</parameter> µÄ·ûºÅÏàͬ²¢ÇÒÆäÊýÁ¿ÖµÐ¡ÓÚ <parameter>y</parameter>¡£ </para> <example> <title>ʹÓà <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> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/math/functions/getrandmax.xml +++ phpdoc-zh/reference/math/functions/getrandmax.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.getrandmax"> <refnamediv> <refname>getrandmax</refname> <refpurpose>ÏÔÊ¾Ëæ»úÊý×î´óµÄ¿ÉÄÜÖµ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>getrandmax</methodname> <void/> </methodsynopsis> <simpara> ·µ»Øµ÷Óà <function>rand</function> ¿ÉÄÜ·µ»ØµÄ×î´óÖµ¡£ </simpara> <simpara> ²Î¼û <function>rand</function>£¬<function>srand</function> ºÍ <function>mt_getrandmax</function>¡£ </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/math/functions/hexdec.xml +++ phpdoc-zh/reference/math/functions/hexdec.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.hexdec"> <refnamediv> <refname>hexdec</refname> <refpurpose>Ê®Áù½øÖÆ×ª»»ÎªÊ®½øÖÆ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>hexdec</methodname> <methodparam><type>string</type><parameter>hex_string</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÓë <parameter>hex_string</parameter> ²ÎÊýËù±íʾµÄÊ®Áù½øÖÆÊýµÈÖµµÄµÄÊ®½øÖÆÊý¡£<function>hexdec</function> ½«Ò»¸öÊ®Áù½øÖÆ×Ö·û´®×ª»»ÎªÊ®½øÖÆÊý¡£ËùÄÜת»»µÄ×î´óÊýֵΪ 7fffffff£¬¼´Ê®½øÖÆµÄ 2147483647¡£ </para> <para> <function>hexdec</function> ½«Óöµ½µÄËùÓзÇÊ®Áù½øÖÆ×Ö·ûÌæ»»³É <literal>0</literal>¡£ÕâÑù£¬ËùÓÐ×ó±ßµÄÁã¶¼±»ºöÂÔ£¬µ«ÓұߵÄÁã»á¼ÆÈëÖµÖС£ <example> <title><function>hexdec</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ var_dump(hexdec("See")); var_dump(hexdec("ee")); // both prints "int(238)" var_dump(hexdec("that")); var_dump(hexdec("a0")); // both prints int(160) ]]> </programlisting> </example> </para> <para> ²Î¼û <function>dechex</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/math/functions/hypot.xml +++ phpdoc-zh/reference/math/functions/hypot.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id='function.hypot'> <refnamediv> <refname>hypot</refname> <refpurpose> ·µ»Ø sqrt( num1*num1 + num2*num2) </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>float</type><methodname>hypot</methodname> <methodparam><type>float</type><parameter>num1</parameter></methodparam> <methodparam><type>float</type><parameter>num2</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> &warn.undocumented.func; </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.zh (#1222) next »