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.
数値の精度を決定する方法は? 指定された文字列値から数値の精度を取得しています例: 1202222 -------->>>> 1.202.222. 最初の値はページ 1.202.222 にレンダリングされます
数値精度の使用
一番、
BG
Integer.parse は 32 ビット符号付き (約 -4x10^9 から 4x10^9) を提供します。Long.parse は 64 ビットの符号付き (約 -1x10^19 から 1x10^19) を提供します。BigInteger.parse は無制限の範囲を提供します。long よりも大きな数値を処理する必要があることが確実な場合にのみ、BigInteger を使用してください。ほとんど必要ありません。