Home > Back-end >  Integer. ParseInt (String, int) method
Integer. ParseInt (String, int) method

Time:03-04

Why it can't turn the 32-bit binary Integer. The parseInt (10000000100000001000000010000000, 2)
How will the binary to decimal method using

CodePudding user response:

refer to the original poster ~ Commodity response:
why it can't turn the 32-bit binary Integer. The parseInt (10000000100000001000000010000000, 2)
How will the binary to decimal method using


Integer highest level is the sign bit, can only turn 31 2 base,

CodePudding user response:

reference 1st floor qq_39936465 response:
Quote: refer to the original poster ~ Commodity response:
why it can't turn the 32-bit binary Integer. The parseInt (10000000100000001000000010000000, 2)
How will the binary to decimal method using


Is the sign bit integer that high turn 31 two hexadecimal

Then how to turn a 32-bit

CodePudding user response:

You see, there is a maximum Integer, minimum range, cannot exceed

CodePudding user response:

reference ~ 2 floor Commodity response:
Quote: refer to 1st floor qq_39936465 response:
Quote: refer to the original poster ~ Commodity response:
why it can't turn the 32-bit binary Integer. The parseInt (10000000100000001000000010000000, 2)
How will the binary to decimal method using


Is the sign bit integer that high turn 31 two hexadecimal

That how to turn a 32-bit


Int is a 32-bit but highest level is the sign bit, that is to say, only 31 integer values a. Paresint can only identify 31 2 into a positive number, you enter a 32-bit copy a ceiling
  • Related