title: how can I apply fixed fraction to the integer
body: <p>I'd like to multiply to integer with modified fraction as following</p>
  <p>(<a href="https://stackoverflow.com/questions/28370330/multiplication-by-power-series-summation-with-negative-terms/28380983?noredirect=1#comment45103600_28380983">Multiplication by power series summation with negative terms</a>)</p>
  <p>I have done what to find the method the fraction convert to CSD form.
  But I want to know how can I apply to multiply to integer.</p>
  <p>For example,
  I got this</p>
  <h1>0.46194 = 2^-1 - 2^-5 - 2^-7 + 2^-10.</h1>
  <p>then I can get like this as verilog rtl expression :</p>
  <h1>y= (x&gt;&gt;1) - (x&gt;&gt;5) - (x&gt;&gt;7) + (x&gt;&gt;10);</h1>
  <p>But the problem is that what if I got the input value is 3, then how can I calculate above code?</p>
  <h1>y= (3&gt;&gt;1) - (3&gt;&gt;5) - (3&gt;&gt;7) + (3&gt;&gt;10);</h1>
  <p>But As i know, It does impossible calculate. because 3&gt;&gt;1 is 1,  (3&gt;&gt;5) is 0, (3&gt;&gt;7) is 0,  (3&gt;&gt;10) is 0;</p>
  <p>So I can't get the normal result. Also the reason of finding the modified fraction expression has gone away.
  Then this posting's question point is &quot;how can I apply the modified fraction to the integer&quot;.</p>
  <p>UPDATE :
  This should be like this.
  y= ((3&lt;&lt;1024)&gt;&gt;1) - ((3&lt;&lt;1024)&gt;&gt;5) - ((3&lt;&lt;1024)&gt;&gt;7) + ((3&lt;&lt;1024)&gt;&gt;10);</p>