Skip to content

Commit

Permalink
Update bc (c7e83fbbbcde9f54affc09424d032c38492a3ff4) (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan2Shrek authored Jan 14, 2025
1 parent 2bda0c2 commit a60bc33
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 21 deletions.
2 changes: 1 addition & 1 deletion reference/bc/bcmath/number/divmod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
&reftitle.returnvalues;
<simpara>
Renvoie un <type>array</type> indexé où le premier élément est le quotient sous forme d'un nouvel objet <classname>
BcMath\Number</classname> et le second élément est le modulo sous forme d'un nouvel objet <classname>
BcMath\Number</classname> et le second élément est le modulo sous forme d'un nouvel objet
<classname>BcMath\Number</classname>.
</simpara>
<simpara>
Expand Down
7 changes: 3 additions & 4 deletions reference/bc/book.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 46a9cdd2dbef4ec89bf65fad9930e2feb78bbb98 Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<book xml:id="book.bc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -14,7 +13,7 @@
<para>
Pour les calculs mathématiques d'une grande précision, PHP fournit
BCMath, qui supporte n'importe quelle précision et
n'importe quelle taille de nombres jusqu'à <literal>2147483647</literal> (ou
n'importe quelle taille de nombres jusqu'à <literal>2147483647</literal> (ou
<literal>0x7FFFFFFF</literal>) chiffres décimals, s'il y a suffisamment de mémoire,
représentés sous la forme d'une &string;.
</para>
Expand Down Expand Up @@ -55,6 +54,7 @@ echo bcsub($num1, $num2, 1); // => '0.0'

&reference.bc.setup;
&reference.bc.reference;
&reference.bc.bcmath.number;

</book>

Expand All @@ -78,4 +78,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

3 changes: 2 additions & 1 deletion reference/bc/functions/bcadd.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcadd" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -114,6 +114,7 @@ echo bcadd($a, $b, 4); // 6.2340
<para>
<simplelist>
<member><function>bcsub</function></member>
<member><methodname>BcMath\Number::add</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcceil.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.bcceil" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -77,6 +77,7 @@ string(2) "-3"
<simplelist>
<member><function>bcfloor</function></member>
<member><function>bcround</function></member>
<member><methodname>BcMath\Number::ceil</methodname></member>
</simplelist>
</refsect1>
</refentry>
Expand Down
8 changes: 7 additions & 1 deletion reference/bc/functions/bccomp.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bccomp" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -76,6 +76,12 @@ echo bccomp('1.00001', '1', 5); // 1
</programlisting>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>BcMath\Number::compare</methodname></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcdiv.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcdiv" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -113,6 +113,7 @@ echo bcdiv('105', '6.55957', 3); // 16.007
<member><function>bcmul</function></member>
<member><function>bcdivmod</function></member>
<member><function>bcmod</function></member>
<member><methodname>BcMath\Number::div</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcdivmod.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.bcdivmod" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -82,6 +82,7 @@ echo $rem; // 0.5
<simplelist>
<member><function>bcdiv</function></member>
<member><function>bcmod</function></member>
<member><methodname>BcMath\Number::divmod</methodname></member>
</simplelist>
</refsect1>
</refentry>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcfloor.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.bcfloor" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -61,6 +61,7 @@ string(2) "-4"
<simplelist>
<member><function>bcceil</function></member>
<member><function>bcround</function></member>
<member><methodname>BcMath\Number::floor</methodname></member>
</simplelist>
</refsect1>
</refentry>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcmod.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="function.bcmod" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
Expand Down Expand Up @@ -115,6 +115,7 @@ echo bcmod('5.7', '1.3'); // 0.5 depuis PHP 7.2.0; 0 precédement
<simplelist>
<member><function>bcdiv</function></member>
<member><function>bcdivmod</function></member>
<member><methodname>BcMath\Number::mod</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcmul.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcmul" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -104,6 +104,7 @@ echo bcmul('5', '2', 2); // affiche "10", pas "10.00"
<para>
<simplelist>
<member><function>bcdiv</function></member>
<member><methodname>BcMath\Number::mul</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcpow.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -151,6 +151,7 @@ echo bcpow('5', '2', 2); // affiche "25", pas "25.00"
<simplelist>
<member><function>bcpowmod</function></member>
<member><function>bcsqrt</function></member>
<member><methodname>BcMath\Number::pow</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcpowmod.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcpowmod" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -154,6 +154,7 @@ $b = bcmod(bcpow($x, $y), $mod);
<simplelist>
<member><function>bcpow</function></member>
<member><function>bcmod</function></member>
<member><methodname>BcMath\Number::powmod</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcround.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.bcround" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -273,6 +273,7 @@ string(4) "-1.5"
<simplelist>
<member><function>bcceil</function></member>
<member><function>bcfloor</function></member>
<member><methodname>BcMath\Number::round</methodname></member>
</simplelist>
</refsect1>
</refentry>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcsqrt.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcsqrt" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -110,6 +110,7 @@ echo bcsqrt('2', 3); // 1.414
<para>
<simplelist>
<member><function>bcpow</function></member>
<member><methodname>BcMath\Number::sqrt</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
3 changes: 2 additions & 1 deletion reference/bc/functions/bcsub.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ddb05f8827151e25dd1c3e058f95f6c024bc881b Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcsub" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
Expand Down Expand Up @@ -81,6 +81,7 @@ echo bcsub($a, $b, 4); // -3.7660
<para>
<simplelist>
<member><function>bcadd</function></member>
<member><methodname>BcMath\Number::sub</methodname></member>
</simplelist>
</para>
</refsect1>
Expand Down
7 changes: 4 additions & 3 deletions reference/bc/ini.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6dfe0767250cdbdf509223f6bc266557b0a3fec9 Maintainer: yannick Status: ready -->
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<section xml:id="bc.configuration" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -45,6 +44,9 @@
Le nombre de décimales pour toutes les fonctions bcmath.
Voir aussi <function>bcscale</function>.
</para>
<note>
<simpara><classname>BcMath\Number</classname> n'est pas affecté par ce paramètre.</simpara>
</note>
</listitem>
</varlistentry>
</variablelist>
Expand All @@ -71,4 +73,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

0 comments on commit a60bc33

Please sign in to comment.