in Digital Logic edited by
445 views
0 votes
0 votes
  • The $(r-1)$’s complement of a number can be found using formula $(r^{n}-r^{-m}-N)$ where $r$ is base of the number $N$ having $n$ digits and $m$ digits in integral an fraction part respectively. We have been given some decimal numbers as shown below:
    $(i) 325$                    $(ii) 325.893$
    $(iii) –819$                 $(iv) –517.67$
    How many $(r – 1)’s$ complement of above decimal numbers can be calculated using mentioned formula?

in Digital Logic edited by
445 views

3 Comments

i think number is given in decimal so 9's complement will be unique for every number.
0
0
yes, but (i) and (iv) maynot be decimal.
0
0
What is ans. given??

(iii)180  and (iv)482.32 ??
0
0

1 Answer

0 votes
0 votes

Here r=radix number or base

integer part n digits

fraction part m digits

N= positive given number.

$\left ( i \right ) 325$

$10^{3}-10^{0}-325=999-325=674$

 

$\left ( ii \right )325.893$

$10^{3}-10^{-3}-325.893=999.999-325.893=674.217$

 

Similar for $(iii)$ and $(iv)$ too.-ve willnot have any extra effect on numbers

Ref: Page 27 here

Related questions