Skip to content

Alternative to native representation of numbers #5

Description

@Lukinoh

Hello,

It is not an issue, but a question.
As you may know, JavaScript and decimal it's not great love.
So if you do 0.1 + 0.2 the result will be 0.30000000000000004 .

Currently, in your library you are using native representation of numbers, so such issue could arise (which is fine me).
However, there is no easy way to replace the default behaviour. So I had to duplicate the unit.ts and adapt it to use decimal.js.

Do you plan to offer a way to have better integration with libraries such as decimal.js ?

P.S. Don't hesitate to edit the title of the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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