Use decimal.js instead of FP arithmetic