rarruda Sun Apr 28 16:27:23 2002 EDT Modified files: /phpdoc/pt_BR/reference/math/functions abs.xml Log: initial translation Index: phpdoc/pt_BR/reference/math/functions/abs.xml diff -u /dev/null phpdoc/pt_BR/reference/math/functions/abs.xml:1.3 --- /dev/null Sun Apr 28 16:27:23 2002 +++ phpdoc/pt_BR/reference/math/functions/abs.xml Sun Apr 28 16:27:23 2002 @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: rarruda Status: ready --> + <refentry id="function.abs"> + <refnamediv> + <refname>abs</refname> + <refpurpose>Valor absoluto</refpurpose> + </refnamediv> + <refsect1> + <title>Descrição</title> + <methodsynopsis> + <type>mixed</type><methodname>abs</methodname> + <methodparam><type>mixed</type><parameter>número</parameter></methodparam> + </methodsynopsis> + <para> + Retorna o valor absoluto de um número. Se o argumento do número é do tipo + <type>float</type>, o número retornado também é <type>float</type>, + de forma contrária é <type>inteiro</type> (assim como <type>float</type> + tem uma gama de valores mairo do que <type>inteiro</type>. + </para> + <example> + <title>exemplo de <function>abs</function></title> + <programlisting role="php"> +<![CDATA[ +$abs = abs(-4.2); // $abs = 4.2; (double/float) +$abs2 = abs(5); // $abs2 = 5; (inteiro) +$abs3 = abs(-5); // $abs3 = 5; (inteiro) +]]> + </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 +-->