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