theory - (r-1)'s complement or 9's complement -
i have been trying figure out whether 2 numbers wud same 9's complement value.. found general equation (r-1)'s complement text : (r^n) - (r^-m) - n r = radix or base; n= no of digits in integer part; m= no. of digits in fractional part , n=given value..
but when apply eqn find 9's complement of 2 numbers: 0.473 , 9.473 same result both i.e. 0.526 i.e. (10^0) - (10^-3) - 0.473 = 0.526; , (10^1) - (10^-3) - 9.473 = 0.526
is there solution since these 2 numbers cannot yield same result (it shud wrong)..??
the n
, m
values in formula not "no of digits in integer part" , "no. of digits in fractional part" in particular n
value. these n
, m
numbers should chosen once work complement numbers , not changed, , set limits on numbers can work with: after choose n
, m
, can work numbers @ n
digits in integer part , @ m
digits in fractional part.
so example if choose n=0
, can not process 9.473. able process both 0.473 , 9.473, should choose, example, n=1
, m=3
, 0.526 , 9.526 results.
Comments
Post a Comment