indutny / bn.js

BigNum in pure javascript
MIT License
1.19k stars 150 forks source link

Which rounding method is used? #290

Open ackvf opened 2 years ago

ackvf commented 2 years ago

Hi, what is the default rounding method used by bn.js library? Can it be configured?

https://en.wikipedia.org/wiki/Rounding#Comparison_of_approaches_for_rounding_to_an_integer

svg