Skip to content

new algorithm(xjb) for double to shortest decimal. #238

Description

@xjb714

hello,

link : https://github.com/xjb714/f2dec_bench

If it doesn't work, please give me feedback.
It seems a little difficult to prove that the algorithm is correct, but I can't find a counterexample.
The algorithm may be correct, and I have tested a large number of data with correct output.
I have tested all the float values and the output results are correct.
If you are interested, you can study my algorithm code, and the function name is xjb_f64_to_dec.
If you know that others are interested in this kind of algorithm, you can also share it with others.

Thanks for reading.

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