helium / helium-js

Official TypeScript packages for interacting with the Helium blockchain
Apache License 2.0
110 stars 35 forks source link

Add default formatting options to balance #329

Closed matthewcarlreetz closed 2 years ago

matthewcarlreetz commented 2 years ago

Creates formatting defaults for currencies when using toString Allows overriding defaults balance.toString(10, { showTrailingZeroes: false })

The only currency specifying default formatting is USD which is... { decimalPlaces: 2, showTrailingZeroes: true }