edited by
586 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?

edited by

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

0 votes
0 votes
0 answers
1
1 votes
1 votes
0 answers
2
Gupta731 asked Nov 9, 2018
1,099 views
Let X = X2X1X0 and Y= Y1Y0 be unsigned positive 3 digit and 2 digit numbers respectively. The output function 'f' = 1 only when X>Y otherwise '0'. Then the value of outpu...
2 votes
2 votes
1 answer
3
Epsilon95 asked May 10, 2017
1,269 views
From the 7 symbols (0-6) how many different codes we can construct?(a) 8! (b) 8(c) 7! (d) 7 provide an explanation, answer is (a)