1
0
mirror of https://github.com/php/doc-it.git synced 2026-04-23 23:38:18 +02:00
Files
archived-doc-it/reference/math/functions/abs.xml
T
Hartmut Holzgraefe 1c37529476 en revision update
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@78500 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 07:09:08 +00:00

56 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/math.xml, last change in rev 1.1 -->
<!-- last change to 'abs' in en/ tree in rev 1.2 -->
<!-- EN-Revision: 1.2 Maintainer: cortesi Status: ready -->
<!-- OLD-Revision: 1.78/EN.1.2 -->
<refentry id="function.abs">
<refnamediv>
<refname>abs</refname>
<refpurpose>Valore assoluto</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>mixed</type><methodname>abs</methodname>
<methodparam><type>mixed</type><parameter>numero</parameter></methodparam>
</methodsynopsis>
<para>
Restituisce il valore assoluto di un numero. Se l'argomento della funzione
&egrave; di tipo <type>float</type>, il valore restituito &egrave; <type>float</type>,
altrimenti restituisce un <type>integer</type> (perch&eacute; <type>float</type> di solito ha un range di
valori pi&ugrave; grande di <type>integer</type>).
</para>
<example>
<title>Esempio di <function>abs</function></title>
<programlisting role="php">
<![CDATA[
$abs = abs(-4.2); // $abs = 4.2; (double/float)
$abs2 = abs(5); // $abs2 = 5; (integer)
$abs3 = abs(-5); // $abs3 = 5; (integer)
]]>
</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
-->