diff --git a/doc/API.html b/doc/API.html index 81289eb..9eb8e14 100644 --- a/doc/API.html +++ b/doc/API.html @@ -1659,7 +1659,15 @@ y = new Decimal(2) y.isNeg // false

Note: n < 0 can be used if n <= -Number.MIN_VALUE.

+

Also note that signed zeroes are implemented, following the IEEE Standard + for Floating-Point Arithmetic (IEEE 754).

+
+Decimal(0).valueOf()                 // '0'
+Decimal(0).isNegative()              // false
+Decimal(0).negated().valueOf()       // '-0'
+Decimal(0).negated().isNegative()    // true
+    
isPositive.isPos() ⇒ boolean