Algorithm to convert an IEEE 754 double to a string?

前端 未结 4 1924
忘了有多久
忘了有多久 2020-11-27 05:48

Many programming languages that use IEEE 754 doubles provide a library function to convert those doubles to strings. For example, C has sprintf, C++ has

4条回答
  •  再見小時候
    2020-11-27 06:25

    I believe you are looking for Printing Floating-Point Numbers Quickly and Accurately

    I found that link on another post: here.

提交回复
热议问题