diff --git a/doc/API.html b/doc/API.html index 4ae9ba3..bc8867b 100644 --- a/doc/API.html +++ b/doc/API.html @@ -589,8 +589,8 @@ x.equals(y) // true rounding, minE, maxE, toExpNeg, toExpPos, errors, - modulo and crypto are set - using the config method. + modulo and crypto are + set using the config method.

As simple object properties they can be set directly without using @@ -1348,18 +1348,28 @@ x.minus(0.6, 20) // '0'

The value returned, and in particular its sign, is dependent on the value of the - modulo property. If it is 1 (default value), the - result will have the same sign as this Decimal, and it will match that of Javascript's - % operator (within the limits of double precision) and BigDecimal's - remainder method. + modulo property of this Decimal's constructor. If it is + 1 (default value), the result will have the same sign as this Decimal, and it + will match that of Javascript's % operator (within the limits of double + precision) and BigDecimal's remainder method. +

+

+ See modulo for a description of the other modulo modes.

-

See modulo for a description of the other modulo modes.

 1 % 0.9                    // 0.09999999999999998
 x = new Decimal(1)
 x.modulo(0.9)              // '0.1'
+
 y = new Decimal(33)
-y.mod('a', 33)             // '3'
+y.mod('a', 33) // '3' + +x = new Decimal(8) +y = new Decimal(-3) +Decimal.modulo = 1 +x.mod(y) // '2' +Decimal.modulo = 3 +x.mod(y) // '-1'