Using big-integer .equals method in toDecimal instead of js comparison on numbers