Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような数値が1.79769313486232E+308あり、最も近い整数に丸めたいと思います。だから私は以下のものを試しました:
1.79769313486232E+308
Math.Round(1.79769313486232E+308, 0)
しかし、それでも同じ結果が得られます。
誰でも私を助けることができますか?
私のために働いた
.NET Framework 4.0を使用している場合は、 System.Numericsへの参照を追加してから 、
BigInteger b = BigInteger.Parse("1.79769313486232E+308", NumberStyles.Any, CultureInfo.InvariantCulture);