Files
protocol/packages/utils/src/configured_bignumber.ts
2018-01-04 12:38:19 +01:00

10 lines
307 B
TypeScript

import { BigNumber } from 'bignumber.js';
// 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,
});
export { BigNumber };