Math.Pi constant is wrong

后端 未结 3 1435
悲哀的现实
悲哀的现实 2021-01-26 04:55

I\'m well aware that a Double has only so many bits of precision, but we should still try to achieve high accuracy if possible. So I certainly do not expect to see this in the o

3条回答
  •  滥情空心
    2021-01-26 05:25

    A quick test shows that Console.WriteLine(Math.PI) outputs 3.14159265358979 so how can this be true? Are you saying ToString() adds extra digits by magic?

提交回复
热议问题