Skip to content

Commit

Permalink
Avoid nesting includes
Browse files Browse the repository at this point in the history
  • Loading branch information
SakiTakamachi committed Dec 2, 2024
1 parent ae14882 commit 710fa08
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions reference/bc/functions/bcdiv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,18 @@
</refsect1>

<refsect1 role="errors">
<!-- Include standard ValueErrors for num1, num2, and scale, this includes the title -->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('function.bcadd')/db:refsect1[@role='errors']/*)" />
<para>
This function throws a <exceptionname>ValueError</exceptionname> in the following cases:
<simplelist>
<member>
<parameter>num1</parameter> or <parameter>num2</parameter>
is not a well-formed BCMath numeric string.
</member>
<member>
<parameter>scale</parameter> is outside the valid range.
</member>
</simplelist>
</para>
<simpara>
This function throws a <exceptionname>DivisionByZeroError</exceptionname>
exception if <parameter>num2</parameter> is <literal>0</literal>.
Expand Down

0 comments on commit 710fa08

Please sign in to comment.