aboutsummaryrefslogblamecommitdiffstats
path: root/src/bignumber_config.ts
blob: 9641159d0b86d4b67788ca018cecb0a627c80403 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                     
import * as BigNumber from 'bignumber.js';

export function setBigNumberConfig() {
    // By default BigNumber's `toString` method converts to exponential notation if the value has
    // more then 20 digits. We want to avoid this behavior, so we set EXPONENTIAL_AT to a high number
    BigNumber.config({
        EXPONENTIAL_AT: 1000,
    });
}