Not every BigNumber
can be converted into a Javascript Number
with an equivalent value.
If that had been the case, then we wouldn't have needed a BigNumber
class to begin with.
Referring to your actual question - you haven't really explained why you need to perform this conversion.
Your question implies that you don't like the printout, in which case you can fix your code as follows:
let rate = await this.crowdsale.rate();
console.log(rate.toFixed());
If you're interested in performing additional calculations, then you can simply use BigNumber
functions.
So technically speaking, there shouldn't be any need convert your BigNumber
into a Javascript Number
.