xsy-breeze-ui-rpa > BigNumber > set
BigNumber.set() method
Configures the settings that apply to this BigNumber constructor.
The configuration object, object, contains any number of the properties shown in the example below.
Returns an object with the above properties and their current values.
Throws if object is not an object, or if an invalid value is assigned to one or more of the properties.
set({
DECIMAL_PLACES: 40,
ROUNDING_MODE: ROUND_HALF_CEIL,
EXPONENTIAL_AT: [-10, 20],
RANGE: [-500, 500],
CRYPTO: true,
MODULO_MODE: ROUND_FLOOR,
POW_PRECISION: 80,
FORMAT: {
groupSize: 3,
groupSeparator: ' ',
decimalSeparator: ','
},
ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'
});
set().DECIMAL_PLACES // 40
Signature:
static set(object: Config): Config;
Parameters
| Parameter | Type | Description |
|---|---|---|
| object | Config |
Returns:
Config
