Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ HOW ] -32768 in 16bit memory ?

7 views
Skip to first unread message

sh4...@gmail.com

unread,
Oct 11, 2012, 9:39:49 AM10/11/12
to
How to represent -32768 in 16bit memory , how bits are set .? :(

cg_chas

unread,
Nov 14, 2012, 10:55:48 PM11/14/12
to
On Thu, 11 Oct 2012 06:39:49 -0700 (PDT), sh4...@gmail.com wrote:

>How to represent -32768 in 16bit memory , how bits are set .? :(

Have a look at http://en.wikipedia.org/wiki/Two's_complement

For the case of -32768 which is the lowest value for the 16-bit signed int,
the binary representation is 1000 0000 0000 0000.
0 new messages