mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update node modules
This commit is contained in:
12
node_modules/decimal.js/doc/API.html
generated
vendored
12
node_modules/decimal.js/doc/API.html
generated
vendored
@@ -1659,7 +1659,15 @@ y = new Decimal(2)
|
||||
y.isNeg // false</pre>
|
||||
<p>Note: <code>n < 0</code> can be used if <code>n <= -Number.MIN_VALUE</code>.</p>
|
||||
|
||||
<p>Also note that signed zeroes are implemented, following the IEEE Standard
|
||||
for Floating-Point Arithmetic (IEEE 754).</p>
|
||||
|
||||
<pre>
|
||||
Decimal(0).valueOf() // '0'
|
||||
Decimal(0).isNegative() // false
|
||||
Decimal(0).negated().valueOf() // '-0'
|
||||
Decimal(0).negated().isNegative() // true
|
||||
</pre>
|
||||
|
||||
<h5 id="isPos">isPositive<code class='inset'>.isPos() <i>⇒ boolean</i></code></h5>
|
||||
<p>
|
||||
@@ -2388,8 +2396,8 @@ x.toPrecision() // '45.6'
|
||||
y.toPrecision() // '45.6'
|
||||
x.toPrecision(1) // '5e+1'
|
||||
y.toPrecision(1) // '5e+1'
|
||||
y.toPrecision(2, Decimal.ROUND_UP) // '4.6e+1'
|
||||
y.toPrecision(2, Decimal.DOWN) // '4.5e+1'
|
||||
y.toPrecision(2, Decimal.ROUND_UP) // '46'
|
||||
y.toPrecision(2, Decimal.ROUND_DOWN) // '45'
|
||||
x.toPrecision(5) // '45.600'
|
||||
y.toPrecision(5) // '45.600'</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user