C# High double precision

前端 未结 6 1466
我在风中等你
我在风中等你 2021-01-19 00:45

I\'m writing a function that calculates the value of PI, and returns it as a double. So far so good. But once the function gets to 14 digits after the decimal place, it can\

6条回答
  •  有刺的猬
    2021-01-19 00:51

    Yes, it's because the double's limited precision. There are a number of different ways to compute digits of pi. I would suggest asking your favorite search engine, "how to compute digits of pi".

提交回复
热议问题