Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Support Precise Decimal Calculations #11

Open
Kyo91 opened this issue Jun 9, 2022 · 0 comments
Open

Feature Request - Support Precise Decimal Calculations #11

Kyo91 opened this issue Jun 9, 2022 · 0 comments

Comments

@Kyo91
Copy link

Kyo91 commented Jun 9, 2022

It would be great if this library could extend some/all of the functions to work with Decimal data types for cases where we value the additional accuracy over improved performance. Currently I can cast return values from your library to a Decimal with |> Decimal.from_float(), but by that point some accuracy has already been lost due to floating point calculations:

iex(1)> Numerix.Statistics.mean([0.1, 0.1, 0.1])
0.10000000000000002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant