8000 Adding support to format roundDigits (for tokenDust) · Issue #14 · bpierre/dnum · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Adding support to format roundDigits (for tokenDust) #14
Open
@yodlmeister

Description

@yodlmeister

Nice library.

We'd like to do a PR to add following functionality to better display token dust. E.g. when amounts are < 0.0

dnum.format([ 126, 8], roundDust: 1)
=> 0.00001

dnum.format([ 126, 8], roundDust: 2)
=> 0.000013

Would you accept a PR for that, any considerations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0