Skip to content

Bug: Rounding error when using coin selection #1568

@moneymanolis

Description

@moneymanolis

When using coin selection and send max (meaning using all the UTXOs selected) the amount selected is off. This seems to come from known issues in JavaScript when using floating point arithmetic (see here: https://ericlippert.com/2003/09/15/why-does-jscript-have-rounding-errors/). The relevant floating point arithemtic in this case is probably here:

Screenshot of the issue:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions