xsy-breeze-ui-rpa > BigNumber > sum
BigNumber.sum() method
Returns a BigNumber whose value is the sum of the arguments.
The return value is always exact and unrounded.
x = new BigNumber('3257869345.0378653')
sum(4e9, x, '123456789.9') // '7381326134.9378653'
arr = [2, new BigNumber(14), '15.9999', 12]
sum.apply(null, arr) // '43.9999'
Signature:
static sum(...n: Value[]): BigNumber;
Parameters
| Parameter | Type | Description |
|---|---|---|
| n | Value[] |
Returns:
BigNumber
