java - 为什么Long.parseLong最多只能转换19位数字,Long最大不是64位么?
迷茫
迷茫 2017-04-18 09:36:31
0
3
1031
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
黄舟

The maximum value of the long type is 9223372036854775807, which is exactly 19 digits in length. When you say 64-bit, you should mean 2 to the 64th power.

左手右手慢动作

64-bit refers to binary, right?

刘奇

The 64 bits of long are 64 bits in binary, and the 19 bits you mentioned are 19 characters

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template