error originated.
    </p>
    <p>
      To determine if an exception is a BigNumber Error:
    </p>
    <pre>
try {
    // do something with BigNumbers
} catch (e) {
    if (e.name == 'BigNumber Error') {
        // do something
    }
}</pre>

    <h4 id='faq'>FAQ</h4>
    <h6>Why are trailing fractional zeros removed from BigNumbers?</h6>
    <p>
      Many arbitrary-precision libraries retain trailing fractional zeros as
      they can indicate the precision of a value. This can be useful but the
      r