fouadalnoor
Member
Hello guys,
I know this is really silly but I am a little confused about how to do the following operation by hand:
0.25-0.5? or any similar questions
Also, when it comes to fixed point signed numbers, how do you subtract them?
Say I choose my MSB to be the sign and the 7th bit in an 8 bit number to be 1, while bits 6-0 are the fractional part as shown below:
[SIGN][2^0][2^-1][2^-2][2^-3][2^-4][2^-5][2^-6]
So for example: 01.100000 is 1.5 in decimal.
When aligning the decimal point its easy to add say 1+0.25:
01.000000
+00.010000
=01.010000 = 1.25 in decimal
But how would I do 1-0.25?
Hope you can help!
I know this is really silly but I am a little confused about how to do the following operation by hand:
0.25-0.5? or any similar questions
Also, when it comes to fixed point signed numbers, how do you subtract them?
Say I choose my MSB to be the sign and the 7th bit in an 8 bit number to be 1, while bits 6-0 are the fractional part as shown below:
[SIGN][2^0][2^-1][2^-2][2^-3][2^-4][2^-5][2^-6]
So for example: 01.100000 is 1.5 in decimal.
When aligning the decimal point its easy to add say 1+0.25:
01.000000
+00.010000
=01.010000 = 1.25 in decimal
But how would I do 1-0.25?
Hope you can help!