We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a2d7cd commit 5b3e1aeCopy full SHA for 5b3e1ae
1 file changed
readme.md
@@ -62,8 +62,8 @@ All methods do not modify the input arguments, returning a new BigDecimal, unles
62
| `FromNumber(n)` | Creates a BigDecimal from a JavaScript number. |
63
| `FromBigInt(n)` | Creates a BigDecimal from a native BigInt. |
64
| **Arithmetic** | |
65
-| `add(a, b)` | Adds two BigDecimals. |
66
-| `subtract(a, b)` | Subtracts `b` from `a`. |
+| `add(a, b)` | Adds two BigDecimals, maintaining the precision of the first argument. |
+| `subtract(a, b)` | Subtracts `b` from `a`, maintaining the precision of `a`. |
67
| `multiply_fixed(a, b)` | Multiplies maintaining precision of the first argument. |
68
| `multiply_floating(a, b)` | Multiplies and normalizes the precision to a standard mantissa size (handles scale changes nicely). |
69
| `divide_fixed(a, b)` | Divides `a` by `b` maintaining precision of the first argument. |
0 commit comments