2021-05-26 01:57:02 +00:00
|
|
|
// Import Decimal and numberUtils from a different file to globally change which big num library gets used
|
|
|
|
// This way switching out big number libraries just needs to happen here, not every file that needs big numbers
|
|
|
|
import Decimal, * as numberUtils from '../util/break_eternity';
|
2021-05-20 04:27:23 +00:00
|
|
|
|
|
|
|
export const {
|
|
|
|
exponentialFormat,
|
|
|
|
commaFormat,
|
|
|
|
regularFormat,
|
|
|
|
format,
|
|
|
|
formatWhole,
|
|
|
|
formatTime,
|
|
|
|
toPlaces,
|
|
|
|
formatSmall,
|
|
|
|
invertOOM
|
2021-05-26 01:57:02 +00:00
|
|
|
} = numberUtils;
|
2021-05-20 04:27:23 +00:00
|
|
|
|
2021-05-27 06:14:43 +00:00
|
|
|
window.Decimal = Decimal;
|
|
|
|
window.exponentialFormat = exponentialFormat;
|
|
|
|
window.commaFormat = commaFormat;
|
|
|
|
window.regularFormat = regularFormat;
|
|
|
|
window.format = format;
|
|
|
|
window.formatWhole = formatWhole;
|
|
|
|
window.formatTime = formatTime;
|
|
|
|
window.toPlaces = toPlaces;
|
|
|
|
window.formatSmall = formatSmall;
|
|
|
|
window.invertOOM = invertOOM;
|
|
|
|
|
2021-05-20 04:27:23 +00:00
|
|
|
export default Decimal;
|