Questions tagged [number-systems]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
101 views

Verilog signed numbers representation

I am confused as to when the '-' sign is used and when 's' is used. This post is somewhat helping, although not entirely. Please correct if I am wrong: For example, to interpret 8'sd244, we write 244 ...
  • 327
1 vote
2 answers
262 views

Subtraction using 2's complement, why 4, 8 or 16 bit are required

During subtraction using 2's complement, why it is important to decide on the number of bits we are going to use, (e.g. 4 bit, 8 bit, 16 bit etc) and use the same number of bits to write each number. ...
  • 405
0 votes
1 answer
80 views

Bits are toggled in step 1 or 9's complement is done using subtraction?

In base 2, I want to subtract x-y using adder. Where, x = (1011)2 and y = (0101)2 [For verification, in decimal x=(11)10, y = (5)10. So, we are seeking (6)10 as the answer ] In base 2 using adder we ...
  • 135
-2 votes
1 answer
248 views

Why do we write the integer part from top to bottom and not the other way?

While converting the fractional part of a decimal number to another number system, why do we write the integer part from top to bottom and not the other way? Since the fractional part is 0, the ...