divide the number and the successive quotients by 2 till you get zero as the quotient. note all the remainders in the top to bottom order. they will be either 0 or 1. that is your 2's complement.
-----Original Message----- From: Shivanjali Bhutkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:01 PM To: [EMAIL PROTECTED] Subject: general how to find 2's complement of a number say 2: 0010? ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
