MikeMcl / bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic
http://mikemcl.github.io/bignumber.js
MIT License
6.64k stars 741 forks source link

Resolve lint warnings/errors of "Eclipse for PHP" #277

Closed danielmarschall closed 2 years ago

danielmarschall commented 3 years ago

The following patch will resolve lint warnings/errors shown in "Eclipse for PHP":

Index: API.html
===================================================================
--- API.html    (revision 433)
+++ API.html    (working copy)
@@ -325,7 +325,7 @@
         Default value: <code>20</code>
       </dd>
       <dd>
-        The <u>maximum</u> number of decimal places of the results of operations involving
+        The <span style="text-decoration:underline">maximum</span> number of decimal places of the results of operations involving
         division, i.e. division, square root and base conversion operations, and power
         operations with negative exponents.<br />
       </dd>
@@ -1325,7 +1325,7 @@
     </p>
     <pre>
 x = new BigNumber(-0)
-x.isZero() && x.isNegative()         // true
+x.isZero() &amp;&amp; x.isNegative()         // true
 y = new BigNumber(Infinity)
 y.isZero()                      // false</pre>
     <p>Note: <code>n == 0</code> can be used if <code>n &gt;= Number.MIN_VALUE</code>.</p>
@@ -1448,7 +1448,7 @@
     <p>
       If <code>d</code> is omitted or is <code>null</code> or <code>undefined</code>, the return
       value is the number of significant digits of the value of this BigNumber, or <code>null</code>
-      if the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.</p>
+      if the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.
     </p>
     <p>
       If <code>d</code> is <code>true</code> then any trailing zeros of the integer
@@ -2152,7 +2152,7 @@
 try {
   // ...
 } catch (e) {
-  if (e instanceof Error && e.message.indexOf('[BigNumber Error]') === 0) {
+  if (e instanceof Error &amp;&amp; e.message.indexOf('[BigNumber Error]') === 0) {
       // ...
   }
 }</pre>
MikeMcl commented 2 years ago

Fixed, thank you. Apologies for the delay.