While I was working on smart contract using truffle, whenever request some number like account balance or address from the truffle console; I receive a BN object which looks like this:
BN {
negative: 0,
words: [ 37748736, 3305132, 2220446, <1 empty item> ],
length: 3,
red: null
}
This object is part of bn.js library. But I am not able to find any documentation on how to interpret this object.
How do I read this. I want to learn what each field in this object means and be able to manually convert it to a normal number.