The Gateway to Computer Science Excellence
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 by
edited by | 128 views
i think number is given in decimal so 9's complement will be unique for every number.
yes, but (i) and (iv) maynot be decimal.
What is ans. given??

(iii)180  and (iv)482.32 ??

1 Answer

0 votes

Here r=radix number or base

integer part n digits

fraction part m digits

N= positive given number.

$\left ( i \right ) 325$



$\left ( ii \right )325.893$



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

Ref: Page 27 here

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,315 questions
60,428 answers
95,237 users