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

Implement AlgorithmM #373

Open
9il opened this issue Nov 17, 2021 · 0 comments
Open

Implement AlgorithmM #373

9il opened this issue Nov 17, 2021 · 0 comments
Assignees

Comments

@9il
Copy link
Member

9il commented Nov 17, 2021

  • Algorithm M can be found at https://www.researchgate.net/publication/2295884_How_to_Read_Floating_Point_Numbers_Accurately. It is the simplest one. We don't need any other features from this paper or any other algorithm. Exactly AlgorithmM. Don't need to read the whole paper.
  • API should be the same as mir.bignum.low_level_view: algoR, @safe @nogc pure nothrow
  • Required low-level @nogc pure nothrow arithmetic operations should be added. Don't need to use operator overloading. Standalone functions would work here better.
  • The input can be considered valid.

This algorithm is a simple way to add precision parsing for subnormal numbers. Mir still can't do it well. No other D library can do it as well.

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

2 participants