how to calculate minimum value and maximum value that computer stores isn 2’s complement?
n = bits
min = -1 * 2 ^ ( n – 1 ) max = ( 2 ^ ( n – 1 ) ) – 1
For example:
16 bits min = -32768 max = 32767
_
Name (required)
Mail (will not be published) (required)
Website
Submit Comment
n = bits
min = -1 * 2 ^ ( n – 1 )
max = ( 2 ^ ( n – 1 ) ) – 1
For example:
16 bits
min = -32768
max = 32767
_