n> <span class="o">=</span> <span class="n">x</span> <span class="o">/</span> <span class="n">scale</span>
        <span class="n">y</span> <span class="o">=</span> <span class="n">y</span> <span class="o">+</span> <span class="n">zero_point</span>
        <span class="n">y</span> <span class="o">=</span> <span class="n">round_ste</span><span class="p">(</span><span class="n">y</span><span class="p">)</span>  <span class="c1"># clean up floating point error</span>
        <span class="n">output_bit_width</s