cvs: phpdoc /it/functions math.xml

From: Date: Tue, 20 Nov 2001 02:10:04 +0000
Subject: cvs: phpdoc /it/functions math.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339046@lists.php.net to get a copy of this message
cortesi Mon Nov 19 21:10:04 2001 EDT Modified files: /phpdoc/it/functions math.xml Log: update Index: phpdoc/it/functions/math.xml diff -u phpdoc/it/functions/math.xml:1.16 phpdoc/it/functions/math.xml:1.17 --- phpdoc/it/functions/math.xml:1.16 Thu Nov 15 04:40:17 2001 +++ phpdoc/it/functions/math.xml Mon Nov 19 21:10:04 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.58 Maintainer: cortesi Status: ready --> +<!-- EN-Revision: 1.59 Maintainer: cortesi Status: ready --> <reference id="ref.math"> <title>Funzioni Matematiche</title> <titleabbrev>Mat</titleabbrev> @@ -354,7 +354,9 @@ <example> <title><function>base_convert</function></title> <programlisting role="php"> +<![CDATA[ $binario = base_convert ($esadecimale, 16, 2); +]]> </programlisting> </example> </para> @@ -661,6 +663,7 @@ <example> <title>esempio di <function>hexdec</function></title> <programlisting role="php"> +<![CDATA[ var_dump(hexdec("See")); var_dump(hexdec("ee")); // entrambi stampano "int(238)" @@ -668,6 +671,7 @@ var_dump(hexdec("that")); var_dump(hexdec("a0")); // entrambi stampano int(160) +]]> </programlisting> </example> </para> @@ -761,7 +765,7 @@ restituisce il massimo dei valori di tale array. Se il primo parametro &egrave; un integer, string o double, si ha bisogno almeno di due parametri e <function>max</function> restituisce il maggiore di tali valori. - Si può confrontare un numero illimitato di valori. + Si pu&ograve; confrontare un numero illimitato di valori. </para> <para> Se uno o pi&ugrave; valori sono float, tutti i valori saranno @@ -899,6 +903,7 @@ <parameter>seme</parameter>. <informalexample> <programlisting role="php"> +<![CDATA[ // inizializza usando i microsecondi function crea_seme() { list($usec, $sec) = explode(' ', microtime()); @@ -906,6 +911,7 @@ } mt_srand(crea_seme()); $valorecasuale = mt_rand(); +]]> </programlisting> </informalexample> </para> @@ -1000,7 +1006,8 @@ separatore delle migliaia. Questo si pu&ograve; ottenere usando questa linea: </para> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php $numero = 1234.56; @@ -1019,7 +1026,8 @@ $numero_in_formato_inglese = number_format($numero, 2, '.', ''); // 1234.56 -?&gt; +?> +]]> </programlisting> </example> </para> @@ -1049,7 +1057,7 @@ Restituisce l'equivalente decimale del numero ottale rappresentato dall'argomento stringa_ottale. OctDec converte una stringa ottale in un numero decimale. Il pi&ugrave; grande - numero che può essere convertito è 17777777777 o 2147483647 in + numero che pu&ograve; essere convertito &egrave; 17777777777 o 2147483647 in decimale. </para> <para> @@ -1077,10 +1085,10 @@ <para> <informalexample> <programlisting> - +<![CDATA[ echo pi(); // stamper&agrave; 3.1415926535898 - +]]> </programlisting> </informalexample> </para> @@ -1249,6 +1257,7 @@ <para> <informalexample> <programlisting> +<![CDATA[ $foo = round (3.4); // $foo == 3.0 $foo = round (3.5); // $foo == 4.0 $foo = round (3.6); // $foo == 4.0 @@ -1257,6 +1266,7 @@ $foo = round (1.95583, 2); // $foo == 1.96 $foo = round(1241757, -3); // $foo == 1242000 +]]> </programlisting> </informalexample> </para> @@ -1356,6 +1366,7 @@ <parameter>seme</parameter>. <informalexample> <programlisting> +<![CDATA[ // inizializza usando i microsecondi function crea_seme() { list($usec, $sec) = explode(' ', microtime()); @@ -1363,6 +1374,7 @@ } srand((double)microtime()*1000000); $valorecasuale = rand(); +]]> </programlisting> </informalexample> </para>

« previous php.doc (#969339046) next »