Skip to content

Commit 3295741

Browse files
ext/bcmath: Moved scale description from language-snippets to bcadd (#4423)
1 parent a414ee9 commit 3295741

File tree

6 files changed

+19
-22
lines changed

6 files changed

+19
-22
lines changed

language-snippets.ent

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,19 +2292,6 @@ extensions in order to use these functions.</simpara>'>
22922292

22932293
<!ENTITY sqlsafemode '<link xmlns="http://docbook.org/ns/docbook" linkend="ini.sql.safe-mode">SQL safe mode</link>'>
22942294

2295-
<!-- BCMath Notes -->
2296-
<!ENTITY bc.scale.description '<varlistentry xmlns="http://docbook.org/ns/docbook">
2297-
<term><parameter>scale</parameter></term>
2298-
<listitem>
2299-
<simpara>
2300-
This parameter is used to set the number of digits after the decimal place in the result.
2301-
If &null;, it will default to the default scale set with <function>bcscale</function>,
2302-
or fallback to the value of the
2303-
<link linkend="ini.bcmath.scale"><literal>bcmath.scale</literal></link> INI directive.
2304-
</simpara>
2305-
</listitem>
2306-
</varlistentry>'>
2307-
23082295
<!-- CTYPE Notes -->
23092296
<!ENTITY note.ctype.parameter.integer '<note xmlns="http://docbook.org/ns/docbook"><para>
23102297
If an <type>int</type> between -128 and 255 inclusive is provided, it is interpreted as

reference/bc/functions/bcadd.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@
4040
</para>
4141
</listitem>
4242
</varlistentry>
43-
&bc.scale.description;
43+
<varlistentry xml:id="function.bcadd..parameters.scale">
44+
<term><parameter>scale</parameter></term>
45+
<listitem>
46+
<simpara>
47+
This parameter is used to set the number of digits after the decimal place in the result.
48+
If &null;, it will default to the default scale set with <function>bcscale</function>,
49+
or fallback to the value of the
50+
<link linkend="ini.bcmath.scale"><literal>bcmath.scale</literal></link> INI directive.
51+
</simpara>
52+
</listitem>
53+
</varlistentry>
4454
</variablelist>
4555
</para>
4656
</refsect1>

reference/bc/functions/bcdiv.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</para>
4040
</listitem>
4141
</varlistentry>
42-
&bc.scale.description;
42+
<xi:include xpointer="function.bcadd..parameters.scale" />
4343
</variablelist>
4444
</para>
4545
</refsect1>

reference/bc/functions/bcpow.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook">
3+
<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
44
<refnamediv>
55
<refname>bcpow</refname>
66
<refpurpose>Raise an arbitrary precision number to another</refpurpose>
@@ -42,7 +42,7 @@
4242
</para>
4343
</listitem>
4444
</varlistentry>
45-
&bc.scale.description;
45+
<xi:include xpointer="function.bcadd..parameters.scale" />
4646
</variablelist>
4747
</para>
4848
</refsect1>

reference/bc/functions/bcpowmod.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xml:id="function.bcpowmod" xmlns="http://docbook.org/ns/docbook">
3+
<refentry xml:id="function.bcpowmod" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
44
<refnamediv>
55
<refname>bcpowmod</refname>
66
<refpurpose>Raise an arbitrary precision number to another, reduced by a specified modulus</refpurpose>
@@ -51,7 +51,7 @@
5151
</para>
5252
</listitem>
5353
</varlistentry>
54-
&bc.scale.description;
54+
<xi:include xpointer="function.bcadd..parameters.scale" />
5555
</variablelist>
5656
</para>
5757
</refsect1>

reference/bc/functions/bcsqrt.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xml:id="function.bcsqrt" xmlns="http://docbook.org/ns/docbook">
3+
<refentry xml:id="function.bcsqrt" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
44
<refnamediv>
55
<refname>bcsqrt</refname>
66
<refpurpose>Get the square root of an arbitrary precision number</refpurpose>
@@ -30,7 +30,7 @@
3030
</para>
3131
</listitem>
3232
</varlistentry>
33-
&bc.scale.description;
33+
<xi:include xpointer="function.bcadd..parameters.scale" />
3434
</variablelist>
3535
</para>
3636
</refsect1>
@@ -41,7 +41,7 @@
4141
Returns the square root as a well-formed BCMath numeric string.
4242
</para>
4343
</refsect1>
44-
44+
4545
<refsect1 role="errors">
4646
&reftitle.errors;
4747
<para>

0 commit comments

Comments
 (0)