cvs: phpdoc-it /reference/aspell reference.xml /reference/aspell/functions aspell-check-raw.xml aspell-check.xml aspell-new.xml aspell-suggest.xml
/reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml
| From: | Marco Cucinato | Date: | Sat, 03 Jan 2004 16:23:41 +0000 |
| Subject: | cvs: phpdoc-it /reference/aspell reference.xml /reference/aspell/functions aspell-check-raw.xml aspell-check.xml aspell-new.xml aspell-suggest.xml /reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml |
||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-486@lists.php.net to get a copy of this message | ||
cucinato Sat Jan 3 11:23:41 2004 EDT
Modified files:
/phpdoc-it/reference/aspell reference.xml
/phpdoc-it/reference/aspell/functions aspell-check-raw.xml
aspell-check.xml
aspell-new.xml
aspell-suggest.xml
/phpdoc-it/reference/bc/functions bcadd.xml bccomp.xml bcdiv.xml
Log:
Sync to EN tree
Index: phpdoc-it/reference/aspell/reference.xml diff -u phpdoc-it/reference/aspell/reference.xml:1.5 phpdoc-it/reference/aspell/reference.xml:1.6 --- phpdoc-it/reference/aspell/reference.xml:1.5 Sun Jun 30 19:05:47 2002 +++ phpdoc-it/reference/aspell/reference.xml Sat Jan 3 11:23:39 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> + <!-- EN-Revision: 1.7 Maintainer: cucinato Status: ready --> <reference id="ref.aspell"> <title>Funzioni Aspell [deprecated]</title> <titleabbrev>Aspell</titleabbrev> @@ -11,27 +11,27 @@ Le funzioni <function>aspell</function> permettono di controllare la correttezza di una parola e di offrire suggerimenti. </para> + <note> + <para> + Questa estensione è stata rimossa da <literal>PHP</literal> e non è + più disponibile dal PHP 4.3.0. Se si desidera utilizzare le funzioni di + correzione ortografica in PHP, utilizzare <link linkend="ref.pspell">pspell</link>, + che utilizza la libreria pspell e funziona anche con le nuove versioni di aspell. + </para> + </note> </section> - + <section id="aspell.requirements"> &reftitle.required; <para> aspell funziona solo con versioni molto vecchie (più o meno fino alla .27.*) della libreria aspell. Né il presente modulo, né quelle versioni della - libreria sono più supportate. Se si vuole usare le - funzionalità di controllo grammaticale in PHP, usare piuttosto <link - linkend="ref.pspell">pspell</link>. Usa la libreria - pspell e funziona con le nuove versioni di aspell. - </para> - </section> - - <section id="aspell.installation"> - &reftitle.install; - <para> - È necessaria la libreria aspell, disponibile su: <ulink - url="&url.aspell;">&url.aspell;</ulink>. + libreria sono più supportate. Necessita della libreria aspell, disponibile + da: <ulink url="&url.aspell;">&url.aspell;</ulink>. </para> </section> + + &reference.aspell.configure; <section id="aspell.seealso"> &reftitle.seealso; @@ -64,4 +64,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - Index: phpdoc-it/reference/aspell/functions/aspell-check-raw.xml diff -u phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-check-raw.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-check-raw' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-check-raw"> <refnamediv> @@ -27,6 +27,8 @@ <title><function>aspell_check_raw</function></title> <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (aspell_check_raw($aspell_link, "prova")) { @@ -34,6 +36,8 @@ } else { echo "Spiacente, parola non corretta"; } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-check.xml diff -u phpdoc-it/reference/aspell/functions/aspell-check.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-check.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-check.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-check.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-check' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-check"> <refnamediv> @@ -22,8 +22,10 @@ <para> <example> <title><function>aspell_check</function></title> - <programlisting> + <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (aspell_check($aspell_link, "provva")) { @@ -31,6 +33,8 @@ } else { echo "Spiacente, parola non corretta"; } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-new.xml diff -u phpdoc-it/reference/aspell/functions/aspell-new.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-new.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-new.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-new.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-new' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-new"> <refnamediv> @@ -26,7 +26,9 @@ <title><function>aspell_new</function></title> <programlisting role="php"> <![CDATA[ +<? $aspell_link = aspell_new("italiano"); +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-suggest.xml diff -u phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.2 Wed Apr 17 03:05:18 2002 +++ phpdoc-it/reference/aspell/functions/aspell-suggest.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-suggest' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-suggest"> <refnamediv> @@ -24,6 +24,8 @@ <title><function>aspell_suggest</function></title> <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (!aspell_check($aspell_link, "prova")) { @@ -33,6 +35,8 @@ echo "Possibile parola corretta: $suggerimento<br>\n"; } } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/bc/functions/bcadd.xml diff -u phpdoc-it/reference/bc/functions/bcadd.xml:1.2 phpdoc-it/reference/bc/functions/bcadd.xml:1.3 --- phpdoc-it/reference/bc/functions/bcadd.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcadd.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcadd' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcadd"> <refnamediv> @@ -19,11 +19,29 @@ <para> Somma il <parameter>primo operando</parameter> con il <parameter>secondo operando</parameter> e restituisce la somma sotto forma di - stringa. Il parametro opzionale <parameter>precisione</parameter> è + stringa. Il parametro opzionale <parameter>precisione</parameter> è utilizzato per impostare il numero di cifre dopo il punto decimale nel risultato. </para> <para> + <example> + <title>Esempio di <function>bcadd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcadd($a, $b); // 6 +echo bcadd($a, $b, 4); // 6.2340 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcsub</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bccomp.xml diff -u phpdoc-it/reference/bc/functions/bccomp.xml:1.2 phpdoc-it/reference/bc/functions/bccomp.xml:1.3 --- phpdoc-it/reference/bc/functions/bccomp.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bccomp.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bccomp' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bccomp"> <refnamediv> @@ -12,21 +12,46 @@ <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>bccomp</methodname> - <methodparam><type>string</type><parameter>primo operand</parameter></methodparam> - <methodparam><type>string</type><parameter>secondo operand</parameter></methodparam> + <methodparam><type>string</type><parameter>primo_operando</parameter></methodparam> + <methodparam><type>string</type><parameter>secondo_operando</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>precisione</parameter></methodparam> </methodsynopsis> <para> - Confronta il <parameter>primo operando</parameter> e il - <parameter>secondo operando</parameter> e restituisce il risultato sotto forma di - intero. Il parametro opzionale <parameter>precisione</parameter> è + Confronta il <parameter>primo_operando</parameter> e il + <parameter>secondo_operando</parameter> e restituisce il risultato sotto forma di + intero. Il parametro opzionale <parameter>precisione</parameter> è utilizzato per impostare il numero di cifre dopo il punto decimale che - verranno usate nel confronto. Il valore restituito ` 0 se i due - operandi sono uguali. Se il <parameter>primo operando</parameter> - è più grande del <parameter>secondo operando</parameter> il - valore restituito è +1 e se il <parameter>primo operando</parameter> - è minore del <parameter>secondo operando</parameter> il valore restituito - è -1. + verranno usate nel confronto. Il valore restituito è 0 se i due + operandi sono uguali. Se il <parameter>primo_operando</parameter> + è più grande del <parameter>secondo_operando</parameter> il + valore restituito è +1 e se il <parameter>primo_operando</parameter> + è minore del <parameter>secondo_operando</parameter> il valore restituito + è -1. + </para> + <para> + <example> + <title>esempio di <function>bccomp</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bccomp('1', '2') . "\n"; + +echo bccomp('1.00001', '1', 3) . "\n"; +echo bccomp('1.00001', '1', 5); +?> +]]> + </programlisting> + <para> + Questo mostrerà: + </para> + <screen> +<![CDATA[ +-1 +0 +1 +]]> + </screen> + </example> </para> </refsect1> </refentry> Index: phpdoc-it/reference/bc/functions/bcdiv.xml diff -u phpdoc-it/reference/bc/functions/bcdiv.xml:1.2 phpdoc-it/reference/bc/functions/bcdiv.xml:1.3 --- phpdoc-it/reference/bc/functions/bcdiv.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcdiv.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcdiv' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcdiv"> <refnamediv> @@ -23,6 +23,20 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcdiv</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcmul</function>. </para> </refsect1>
Index: phpdoc-it/reference/aspell/reference.xml diff -u phpdoc-it/reference/aspell/reference.xml:1.5 phpdoc-it/reference/aspell/reference.xml:1.6 --- phpdoc-it/reference/aspell/reference.xml:1.5 Sun Jun 30 19:05:47 2002 +++ phpdoc-it/reference/aspell/reference.xml Sat Jan 3 11:23:39 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> - <!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> + <!-- EN-Revision: 1.7 Maintainer: cucinato Status: ready --> <reference id="ref.aspell"> <title>Funzioni Aspell [deprecated]</title> <titleabbrev>Aspell</titleabbrev> @@ -11,27 +11,27 @@ Le funzioni <function>aspell</function> permettono di controllare la correttezza di una parola e di offrire suggerimenti. </para> + <note> + <para> + Questa estensione è stata rimossa da <literal>PHP</literal> e non è + più disponibile dal PHP 4.3.0. Se si desidera utilizzare le funzioni di + correzione ortografica in PHP, utilizzare <link linkend="ref.pspell">pspell</link>, + che utilizza la libreria pspell e funziona anche con le nuove versioni di aspell. + </para> + </note> </section> - + <section id="aspell.requirements"> &reftitle.required; <para> aspell funziona solo con versioni molto vecchie (più o meno fino alla .27.*) della libreria aspell. Né il presente modulo, né quelle versioni della - libreria sono più supportate. Se si vuole usare le - funzionalità di controllo grammaticale in PHP, usare piuttosto <link - linkend="ref.pspell">pspell</link>. Usa la libreria - pspell e funziona con le nuove versioni di aspell. - </para> - </section> - - <section id="aspell.installation"> - &reftitle.install; - <para> - È necessaria la libreria aspell, disponibile su: <ulink - url="&url.aspell;">&url.aspell;</ulink>. + libreria sono più supportate. Necessita della libreria aspell, disponibile + da: <ulink url="&url.aspell;">&url.aspell;</ulink>. </para> </section> + + &reference.aspell.configure; <section id="aspell.seealso"> &reftitle.seealso; @@ -64,4 +64,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - Index: phpdoc-it/reference/aspell/functions/aspell-check-raw.xml diff -u phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-check-raw.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-check-raw.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-check-raw' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-check-raw"> <refnamediv> @@ -27,6 +27,8 @@ <title><function>aspell_check_raw</function></title> <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (aspell_check_raw($aspell_link, "prova")) { @@ -34,6 +36,8 @@ } else { echo "Spiacente, parola non corretta"; } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-check.xml diff -u phpdoc-it/reference/aspell/functions/aspell-check.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-check.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-check.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-check.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-check' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-check"> <refnamediv> @@ -22,8 +22,10 @@ <para> <example> <title><function>aspell_check</function></title> - <programlisting> + <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (aspell_check($aspell_link, "provva")) { @@ -31,6 +33,8 @@ } else { echo "Spiacente, parola non corretta"; } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-new.xml diff -u phpdoc-it/reference/aspell/functions/aspell-new.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-new.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-new.xml:1.2 Wed Apr 17 03:05:17 2002 +++ phpdoc-it/reference/aspell/functions/aspell-new.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-new' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-new"> <refnamediv> @@ -26,7 +26,9 @@ <title><function>aspell_new</function></title> <programlisting role="php"> <![CDATA[ +<? $aspell_link = aspell_new("italiano"); +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/aspell/functions/aspell-suggest.xml diff -u phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.2 phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.3 --- phpdoc-it/reference/aspell/functions/aspell-suggest.xml:1.2 Wed Apr 17 03:05:18 2002 +++ phpdoc-it/reference/aspell/functions/aspell-suggest.xml Sat Jan 3 11:23:40 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/aspell.xml, last change in rev 1.1 --> <!-- last change to 'aspell-suggest' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.22/EN.1.2 --> <refentry id="function.aspell-suggest"> <refnamediv> @@ -24,6 +24,8 @@ <title><function>aspell_suggest</function></title> <programlisting role="php"> <![CDATA[ +<?php + $aspell_link = aspell_new("italiano"); if (!aspell_check($aspell_link, "prova")) { @@ -33,6 +35,8 @@ echo "Possibile parola corretta: $suggerimento<br>\n"; } } + +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/bc/functions/bcadd.xml diff -u phpdoc-it/reference/bc/functions/bcadd.xml:1.2 phpdoc-it/reference/bc/functions/bcadd.xml:1.3 --- phpdoc-it/reference/bc/functions/bcadd.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcadd.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcadd' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcadd"> <refnamediv> @@ -19,11 +19,29 @@ <para> Somma il <parameter>primo operando</parameter> con il <parameter>secondo operando</parameter> e restituisce la somma sotto forma di - stringa. Il parametro opzionale <parameter>precisione</parameter> è + stringa. Il parametro opzionale <parameter>precisione</parameter> è utilizzato per impostare il numero di cifre dopo il punto decimale nel risultato. </para> <para> + <example> + <title>Esempio di <function>bcadd</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$a = 1.234; +$b = 5; + +echo bcadd($a, $b); // 6 +echo bcadd($a, $b, 4); // 6.2340 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcsub</function>. </para> </refsect1> Index: phpdoc-it/reference/bc/functions/bccomp.xml diff -u phpdoc-it/reference/bc/functions/bccomp.xml:1.2 phpdoc-it/reference/bc/functions/bccomp.xml:1.3 --- phpdoc-it/reference/bc/functions/bccomp.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bccomp.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bccomp' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bccomp"> <refnamediv> @@ -12,21 +12,46 @@ <title>Descrizione</title> <methodsynopsis> <type>int</type><methodname>bccomp</methodname> - <methodparam><type>string</type><parameter>primo operand</parameter></methodparam> - <methodparam><type>string</type><parameter>secondo operand</parameter></methodparam> + <methodparam><type>string</type><parameter>primo_operando</parameter></methodparam> + <methodparam><type>string</type><parameter>secondo_operando</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>precisione</parameter></methodparam> </methodsynopsis> <para> - Confronta il <parameter>primo operando</parameter> e il - <parameter>secondo operando</parameter> e restituisce il risultato sotto forma di - intero. Il parametro opzionale <parameter>precisione</parameter> è + Confronta il <parameter>primo_operando</parameter> e il + <parameter>secondo_operando</parameter> e restituisce il risultato sotto forma di + intero. Il parametro opzionale <parameter>precisione</parameter> è utilizzato per impostare il numero di cifre dopo il punto decimale che - verranno usate nel confronto. Il valore restituito ` 0 se i due - operandi sono uguali. Se il <parameter>primo operando</parameter> - è più grande del <parameter>secondo operando</parameter> il - valore restituito è +1 e se il <parameter>primo operando</parameter> - è minore del <parameter>secondo operando</parameter> il valore restituito - è -1. + verranno usate nel confronto. Il valore restituito è 0 se i due + operandi sono uguali. Se il <parameter>primo_operando</parameter> + è più grande del <parameter>secondo_operando</parameter> il + valore restituito è +1 e se il <parameter>primo_operando</parameter> + è minore del <parameter>secondo_operando</parameter> il valore restituito + è -1. + </para> + <para> + <example> + <title>esempio di <function>bccomp</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +echo bccomp('1', '2') . "\n"; + +echo bccomp('1.00001', '1', 3) . "\n"; +echo bccomp('1.00001', '1', 5); +?> +]]> + </programlisting> + <para> + Questo mostrerà: + </para> + <screen> +<![CDATA[ +-1 +0 +1 +]]> + </screen> + </example> </para> </refsect1> </refentry> Index: phpdoc-it/reference/bc/functions/bcdiv.xml diff -u phpdoc-it/reference/bc/functions/bcdiv.xml:1.2 phpdoc-it/reference/bc/functions/bcdiv.xml:1.3 --- phpdoc-it/reference/bc/functions/bcdiv.xml:1.2 Wed Apr 17 03:05:19 2002 +++ phpdoc-it/reference/bc/functions/bcdiv.xml Sat Jan 3 11:23:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/bc.xml, last change in rev 1.1 --> <!-- last change to 'bcdiv' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.bcdiv"> <refnamediv> @@ -23,6 +23,20 @@ dopo il punto decimale nel risultato. </para> <para> + <example> + <title>esempio di <function>bcdiv</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcdiv(105, 6.55957, 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> + <para> Vedere anche <function>bcmul</function>. </para> </refsect1>