2 votes 2 votes Consider the number given in the base '12' system is (-1457)12 then the number of 1's in the 2's complement binary representation of that number is ______? The answer is 9 Digital Logic digital-logic number-representation number system + – Sourajit25 asked Oct 23, 2017 • edited Oct 24, 2017 by joshi_nitish Sourajit25 1.1k views answer comment Share Follow See all 13 Comments See all 13 13 Comments reply Show 10 previous comments Sourajit25 commented Oct 24, 2017 reply Follow Share First,can you explain from where you are getting (2372)10 as because (1457)12 = (2371)10 hence (-1457)12 =(-2371)10 . Second,we need 13 bits to represent a number less than -2^11 (as per the range of 2's complement is concerned),so the extra 1(at MSB) must be a part of the final answer. You can check the answer here :http://www.convertforfree.com/twos-complement-calculator/ 0 votes 0 votes rishi71662data4 commented Oct 24, 2017 reply Follow Share Apologies. Did some stupid blunder. Got the answer. Thank you. 0 votes 0 votes A_i_$_h commented Oct 24, 2017 reply Follow Share @sourajit First,can you explain from where you are getting (2372)10 as because (1457)12 = (2371)10 hence (-1457)12 =(-2371)10 . (-1457)12 is converted to (-2371)10 using 13 bits as 1100101000011....THe MSB 1 is just to indicate negative number now compliment it....when complimenting the MSB 1 is left as such so 2's compliment is 1011010111101 1 votes 1 votes Please log in or register to add a comment.
1 votes 1 votes (-1457)12 = (2371)10 (2371)10 = (0100101000011)2 (Note that, the MSB is set to 0, otherwise, if it were not, then the number would have been interpreted as negative.) (-2371)10 = (1011010111101)2 Thus, it has 9 1's. Harsh Kumar answered Jul 26, 2018 Harsh Kumar comment Share Follow See all 0 reply Please log in or register to add a comment.