Double to string conversion without scientific notation

前端 未结 17 1520
無奈伤痛
無奈伤痛 2020-11-22 15:33

How to convert a double into a floating-point string representation without scientific notation in the .NET Framework?

\"Small\" samples (effective numbers may be of

17条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 16:04

    Being millions of programmers world wide, it's always a good practice to try search if someone has bumped into your problem already. Sometimes there's solutions are garbage, which means it's time to write your own, and sometimes there are great, such as the following:

    http://www.yoda.arachsys.com/csharp/DoubleConverter.cs

    (details: http://www.yoda.arachsys.com/csharp/floatingpoint.html)

提交回复
热议问题