xjb714

Results 33 comments of xjb714

If you are interested, I will publish a paper introducing the principle of the algorithm.

Yes, I'm the original author. Code link: https://github.com/xjb714/xjb Proof of the correctness of the above-mentioned linking algorithm: [fast_f2d.pdf](https://github.com/user-attachments/files/23280768/fast_f2d.pdf) Algorithm principle process: 算法原理流程: float can be proved through exhaustive testing and...

In fact, a complete floating-point number printing algorithm should consist of two processes: (1) binary to decimal (2) decimal to string. The above algorithm does not include the second step....

@vitaut I'm currently finishing the code writing. I guess it will take a few more days. I have some questions: There should be a theoretical optimal solution for converting floating-point...

@vitaut I have implemented the first version. I have submitted a PR to https://github.com/fmtlib/dtoa-benchmark. I haven't tested whether it can run under the MSVC compiler. Currently, it can be compiled...

@vitaut Floating-point number printing involves two steps: (1) binary to decimal. According to the schubfach algorithm, there are a total of four candidate values for the first step. The core...

@vitaut You are reading an outdated document. There are many typos in the article. The latest document on https://github.com/xjb714/xjb, please see the latest document.

@vitaut Sure, you can use this algorithm for free, but the code is still being optimized. The goal is to be compatible with mainstream compilers such as msvc, gcc, icpx,...

@vitaut The source code and documentation have been updated.https://github.com/xjb714/xjb

@vitaut Algorithm correctness proof code. **float**:https://github.com/xjb714/f2dec_bench/blob/main/main.cpp#L488 `void check_all_float_number();` **double**:https://github.com/xjb714/f2dec_bench/blob/main/main.cpp#L612 `void check_double();`