// blog

More tricks for bn.js (Big Number) library in Truffle tests

In the last video of the smart contract testing series I showed you the basic usage of the Big Number library to deal with integers.

But Big Number has many more trick up his sleeves :) In this video, I will show you all these tricks so that you feel comfortable manipulating Big Number objects in your Truffle tests:

  • adding big numbers
  • comparing big numbers
  • and more...

Truffle test using bn.js big numbers, from the video tutorial