cvs: phpdoc-pt_BR /reference/math/functions 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
| From: | Andr� Luis Ferreira da Silva Bacci | Date: | Sat, 07 Sep 2002 21:40:49 +0000 |
| Subject: | cvs: phpdoc-pt_BR /reference/math/functions 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 |
||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-185@lists.php.net to get a copy of this message | ||
ae Sat Sep 7 17:40:49 2002 EDT
Modified files:
/phpdoc-pt_BR/reference/math/functions 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
Log:
new translations
Index: phpdoc-pt_BR/reference/math/functions/getrandmax.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/getrandmax.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/getrandmax.xml Sat Sep 7 17:40:48 2002 @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.getrandmax"> + <refnamediv> + <refname>getrandmax</refname> + <refpurpose>Retorna o maior valor aletório possível</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>int</type><methodname>getrandmax</methodname> + <void/> + </methodsynopsis> + <simpara> + Retorna o valor máximo que pode pode ser gerado em uma chamada a função + <function>rand</function>. + </simpara> + <simpara> + Veja também <function>rand</function>, <function>srand</function> + e <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-pt_BR/reference/math/functions/hexdec.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/hexdec.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/hexdec.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.hexdec"> + <refnamediv> + <refname>hexdec</refname> + <refpurpose>Hexadecimal para decimal</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>int</type><methodname>hexdec</methodname> + <methodparam><type>string</type><parameter>hex_string</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o decimal equivalente do número hexadecimal + representado pelo argumento <parameter>hex_string</parameter>. + <function>hexdec</function> converte uma string hexadecimal para um + número decimal. O maior número que pode ser convertido é + 7fffffff (ou 2147483647 em decimal). + </para> + <para> + <function>hexdec</function> substituirá qualquer caracter não + hexadecimal que encontrar por <literal>0</literal>. Desta forma, todos + os zeros a esqueda são ignorados, mas zeros a direita serão avaliados. + <example> + <title>exemplos <function>hexdec</function></title> + <programlisting role="php"> +<![CDATA[ +var_dump(hexdec("See")); +var_dump(hexdec("ee")); +// ambos exibem "int(238)" + +var_dump(hexdec("that")); +var_dump(hexdec("a0")); +// ambos exibem int(160) +]]> + </programlisting> + </example> + </para> + <para> + See also <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-pt_BR/reference/math/functions/hypot.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/hypot.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/hypot.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.hypot'> + <refnamediv> + <refname>hypot</refname> + <refpurpose> + Retorna a raiz quadrada de (num1*num1 + num2*num2) + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</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 +--> Index: phpdoc-pt_BR/reference/math/functions/is-finite.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-finite.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-finite.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-finite'> + <refnamediv> + <refname>is_finite</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_finite</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retorna &true; se <parameter>val</parameter> é número finito legal + dentro dos limites permitidos para um número float PHP nesta plataforma. + </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-pt_BR/reference/math/functions/is-infinite.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-infinite.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-infinite.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-infinite'> + <refnamediv> + <refname>is_infinite</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_infinite</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retorna &true; se <parameter>val</parameter> é infinito (positivo ou + negativo), como por exemplo o resultado de <literal>log(0)</literal> ou qualquer outro valor + muito grande para caber num float desta plataforma. + </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-pt_BR/reference/math/functions/is-nan.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-nan.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-nan.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-nan'> + <refnamediv> + <refname>is_nan</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_nan</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retonar &true; se <parameter>val</parameter> 'não for um número', + como o resultado de <literal>acos(1.01)</literal>. + </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-pt_BR/reference/math/functions/lcg-value.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/lcg-value.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/lcg-value.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.X Maintainer: ae Status: ready --> + + <refentry id="function.lcg-value"> + <refnamediv> + <refname>lcg_value</refname> + <refpurpose>Gerador congruente linear combinado</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>lcg_value</methodname> + <void/> + </methodsynopsis> + <para> + <function>lcg_value</function> retorna um pseudo número aleatório nos + limites de (0, 1). A função combina duas congruências geradas, com períodos + de 2^31 - 85 e 2^31 - 249. O período desta função é igual + ao produto de ambos os primos. + </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-pt_BR/reference/math/functions/log.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.log"> + <refnamediv> + <refname>log</refname> + <refpurpose>Logarítmo natural</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o logarítimo natural de <parameter>arg</parameter>. + </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-pt_BR/reference/math/functions/log10.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log10.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log10.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.log10"> + <refnamediv> + <refname>log10</refname> + <refpurpose>Logarítmo Base 10</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log10</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o logarítimo na base 10 de <parameter>arg</parameter>. + </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-pt_BR/reference/math/functions/log1p.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log1p.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log1p.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.log1p'> + <refnamediv> + <refname>log1p</refname> + <refpurpose> + Retorna o log(1 + numero), calculado de forma que o valor + do número seja próximo de zero. + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log1p</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-pt_BR/reference/math/functions/max.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/max.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/max.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.max"> + <refnamediv> + <refname>max</refname> + <refpurpose>Localiza o maior número</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>mixed</type><methodname>max</methodname> + <methodparam><type>mixed</type><parameter>arg1</parameter></methodparam> + <methodparam><type>mixed</type><parameter>arg2</parameter></methodparam> + <methodparam><type>mixed</type><parameter>argn</parameter></methodparam> + </methodsynopsis> + <para> + <function>max</function> retorna o maior número dos + parâmetros. + </para> + <para> + Se o primeiro parâmetro é um array, <function>max</function> + retorna o maior valor do array. Se o primeiro parâmetro + é um inteiro, string ou float, você precisa informar pelo menos dois parâmetros, + e <function>max</function> retornará o maior desses números. + Você pode comparar uma quantidade ilimitada de números. + </para> + <para> + Se um ou mais dos valores forem float, todos os valores serão + tratados como floats, e um float será retornado. Se nenhum dos + valores for float, todos serão tratados como inteiros, e + um inteiro é retornado. + </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-pt_BR/reference/math/functions/min.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/min.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/min.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.min"> + <refnamediv> + <refname>min</refname> + <refpurpose>Localiza o menor número</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>number</type><methodname>min</methodname> + <methodparam><type>number</type><parameter>arg1</parameter></methodparam> + <methodparam><type>number</type><parameter>arg2</parameter></methodparam> + <methodparam choice="opt"><parameter>...</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>number</type><methodname>min</methodname> + <methodparam><type>array</type><parameter>numbers</parameter></methodparam> + </methodsynopsis> + <para> + <function>min</function> retorna o menor número dos + parâmetros. + </para> + <para> + Na primeira variante, você precisa pelo menos dois parâmetros, + e <function>min</function> retornará o menor desses valores. + Você pode comparar um número ilimitado de valores. Se uma das + variáveis é indefinida, <function>min</function> falhará. + </para> + <para> + Na segunda variante, <function>min</function> + retorna o menor dos valores em <parameter>numbers</parameter>. + </para> + <para> + Se um ou mais dos valores for um <type>float</type>, todos os valores + serão + tratados como floats, e um float será retornado. Se nenhum dos + valores é um float, todos eles serão tratados como <type>inteiro</type>s, + e um inteiro será retornado. Em caso de falha, <function>min</function> + retorna <type>NULL</type> e um erro nível <constant>E_WARNING</constant> + é registrado + </para> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +$a = 4; +$b = 9; +$c = 3; +$arr = array(99, 34, 11); + +// Você pode querer implementar sua propria checagem +// no caso de falha (uma variável pode não existir) +if (!$min_value = @min($a, $b, $c)) { + echo "Não pude obter o menor valor, tente novamente."; +} else { + echo "O menor valor é $min_value"; +} + +print min($arr); // Exibe 11 + +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + See also <function>max</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-pt_BR/reference/math/functions/getrandmax.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/getrandmax.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/getrandmax.xml Sat Sep 7 17:40:48 2002 @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.getrandmax"> + <refnamediv> + <refname>getrandmax</refname> + <refpurpose>Retorna o maior valor aletório possível</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>int</type><methodname>getrandmax</methodname> + <void/> + </methodsynopsis> + <simpara> + Retorna o valor máximo que pode pode ser gerado em uma chamada a função + <function>rand</function>. + </simpara> + <simpara> + Veja também <function>rand</function>, <function>srand</function> + e <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-pt_BR/reference/math/functions/hexdec.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/hexdec.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/hexdec.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.hexdec"> + <refnamediv> + <refname>hexdec</refname> + <refpurpose>Hexadecimal para decimal</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>int</type><methodname>hexdec</methodname> + <methodparam><type>string</type><parameter>hex_string</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o decimal equivalente do número hexadecimal + representado pelo argumento <parameter>hex_string</parameter>. + <function>hexdec</function> converte uma string hexadecimal para um + número decimal. O maior número que pode ser convertido é + 7fffffff (ou 2147483647 em decimal). + </para> + <para> + <function>hexdec</function> substituirá qualquer caracter não + hexadecimal que encontrar por <literal>0</literal>. Desta forma, todos + os zeros a esqueda são ignorados, mas zeros a direita serão avaliados. + <example> + <title>exemplos <function>hexdec</function></title> + <programlisting role="php"> +<![CDATA[ +var_dump(hexdec("See")); +var_dump(hexdec("ee")); +// ambos exibem "int(238)" + +var_dump(hexdec("that")); +var_dump(hexdec("a0")); +// ambos exibem int(160) +]]> + </programlisting> + </example> + </para> + <para> + See also <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-pt_BR/reference/math/functions/hypot.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/hypot.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/hypot.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.hypot'> + <refnamediv> + <refname>hypot</refname> + <refpurpose> + Retorna a raiz quadrada de (num1*num1 + num2*num2) + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</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 +--> Index: phpdoc-pt_BR/reference/math/functions/is-finite.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-finite.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-finite.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-finite'> + <refnamediv> + <refname>is_finite</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_finite</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retorna &true; se <parameter>val</parameter> é número finito legal + dentro dos limites permitidos para um número float PHP nesta plataforma. + </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-pt_BR/reference/math/functions/is-infinite.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-infinite.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-infinite.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-infinite'> + <refnamediv> + <refname>is_infinite</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_infinite</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retorna &true; se <parameter>val</parameter> é infinito (positivo ou + negativo), como por exemplo o resultado de <literal>log(0)</literal> ou qualquer outro valor + muito grande para caber num float desta plataforma. + </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-pt_BR/reference/math/functions/is-nan.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/is-nan.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/is-nan.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.is-nan'> + <refnamediv> + <refname>is_nan</refname> + <refpurpose> + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>bool</type><methodname>is_nan</methodname> + <methodparam><type>float</type><parameter>val</parameter></methodparam> + </methodsynopsis> + <para> + Retonar &true; se <parameter>val</parameter> 'não for um número', + como o resultado de <literal>acos(1.01)</literal>. + </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-pt_BR/reference/math/functions/lcg-value.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/lcg-value.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/lcg-value.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.X Maintainer: ae Status: ready --> + + <refentry id="function.lcg-value"> + <refnamediv> + <refname>lcg_value</refname> + <refpurpose>Gerador congruente linear combinado</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>lcg_value</methodname> + <void/> + </methodsynopsis> + <para> + <function>lcg_value</function> retorna um pseudo número aleatório nos + limites de (0, 1). A função combina duas congruências geradas, com períodos + de 2^31 - 85 e 2^31 - 249. O período desta função é igual + ao produto de ambos os primos. + </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-pt_BR/reference/math/functions/log.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.log"> + <refnamediv> + <refname>log</refname> + <refpurpose>Logarítmo natural</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o logarítimo natural de <parameter>arg</parameter>. + </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-pt_BR/reference/math/functions/log10.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log10.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log10.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.log10"> + <refnamediv> + <refname>log10</refname> + <refpurpose>Logarítmo Base 10</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log10</methodname> + <methodparam><type>float</type><parameter>arg</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o logarítimo na base 10 de <parameter>arg</parameter>. + </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-pt_BR/reference/math/functions/log1p.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/log1p.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/log1p.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id='function.log1p'> + <refnamediv> + <refname>log1p</refname> + <refpurpose> + Retorna o log(1 + numero), calculado de forma que o valor + do número seja próximo de zero. + </refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>float</type><methodname>log1p</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-pt_BR/reference/math/functions/max.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/max.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/max.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.2 Maintainer: ae Status: ready --> + + <refentry id="function.max"> + <refnamediv> + <refname>max</refname> + <refpurpose>Localiza o maior número</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>mixed</type><methodname>max</methodname> + <methodparam><type>mixed</type><parameter>arg1</parameter></methodparam> + <methodparam><type>mixed</type><parameter>arg2</parameter></methodparam> + <methodparam><type>mixed</type><parameter>argn</parameter></methodparam> + </methodsynopsis> + <para> + <function>max</function> retorna o maior número dos + parâmetros. + </para> + <para> + Se o primeiro parâmetro é um array, <function>max</function> + retorna o maior valor do array. Se o primeiro parâmetro + é um inteiro, string ou float, você precisa informar pelo menos dois parâmetros, + e <function>max</function> retornará o maior desses números. + Você pode comparar uma quantidade ilimitada de números. + </para> + <para> + Se um ou mais dos valores forem float, todos os valores serão + tratados como floats, e um float será retornado. Se nenhum dos + valores for float, todos serão tratados como inteiros, e + um inteiro é retornado. + </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-pt_BR/reference/math/functions/min.xml diff -u /dev/null phpdoc-pt_BR/reference/math/functions/min.xml:1.3 --- /dev/null Sat Sep 7 17:40:49 2002 +++ phpdoc-pt_BR/reference/math/functions/min.xml Sat Sep 7 17:40:49 2002 @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.3 Maintainer: ae Status: ready --> + + <refentry id="function.min"> + <refnamediv> + <refname>min</refname> + <refpurpose>Localiza o menor número</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>number</type><methodname>min</methodname> + <methodparam><type>number</type><parameter>arg1</parameter></methodparam> + <methodparam><type>number</type><parameter>arg2</parameter></methodparam> + <methodparam choice="opt"><parameter>...</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>number</type><methodname>min</methodname> + <methodparam><type>array</type><parameter>numbers</parameter></methodparam> + </methodsynopsis> + <para> + <function>min</function> retorna o menor número dos + parâmetros. + </para> + <para> + Na primeira variante, você precisa pelo menos dois parâmetros, + e <function>min</function> retornará o menor desses valores. + Você pode comparar um número ilimitado de valores. Se uma das + variáveis é indefinida, <function>min</function> falhará. + </para> + <para> + Na segunda variante, <function>min</function> + retorna o menor dos valores em <parameter>numbers</parameter>. + </para> + <para> + Se um ou mais dos valores for um <type>float</type>, todos os valores + serão + tratados como floats, e um float será retornado. Se nenhum dos + valores é um float, todos eles serão tratados como <type>inteiro</type>s, + e um inteiro será retornado. Em caso de falha, <function>min</function> + retorna <type>NULL</type> e um erro nível <constant>E_WARNING</constant> + é registrado + </para> + <para> + <informalexample> + <programlisting> +<![CDATA[ +<?php +$a = 4; +$b = 9; +$c = 3; +$arr = array(99, 34, 11); + +// Você pode querer implementar sua propria checagem +// no caso de falha (uma variável pode não existir) +if (!$min_value = @min($a, $b, $c)) { + echo "Não pude obter o menor valor, tente novamente."; +} else { + echo "O menor valor é $min_value"; +} + +print min($arr); // Exibe 11 + +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + See also <function>max</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 +-->