aboutsummaryrefslogblamecommitdiffstats
path: root/packages/0x.js/src/bignumber_config.ts
blob: 2d5214e6f13e6adb12a6031efc611544e494434a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                     
 








                                                                                                         
import BigNumber from 'bignumber.js';

export const bigNumberConfigs = {
    configure() {
        // 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,
        });
    },
};