title: convert float to integer
body: <p>how to scale and by which factor to scale dctmtx coefficients from float to get following integer values: </p>
  
  <p>float dctmtx:</p>
  
  <pre><code>( (0.3536    0.3536    0.3536    0.3536    0.3536    0.3536    0.3536    0.3536),
      (0.4904    0.4157    0.2778    0.0975   -0.0975   -0.2778   -0.4157   -0.4904),
      (0.4619    0.1913   -0.1913   -0.4619   -0.4619   -0.1913    0.1913    0.4619),
      (0.4157   -0.0975   -0.4904   -0.2778    0.2778    0.4904    0.0975   -0.4157),
      (0.3536   -0.3536   -0.3536    0.3536    0.3536   -0.3536   -0.3536    0.3536),
      (0.2778   -0.4904    0.0975    0.4157   -0.4157   -0.0975    0.4904   -0.2778),
      (0.1913   -0.4619    0.4619   -0.1913   -0.1913    0.4619   -0.4619    0.1913),
      (0.0975   -0.2778    0.4157   -0.4904    0.4904   -0.4157    0.2778   -0.0975)
  )
  </code></pre>
  
  <p>integer dctmtx:</p>
  
  <pre><code>(( 125,   122,   115,    103,    88,     69,     47,      24  ),
          ( 125,   103,    47,    -24,   -88,   -122,   -115,     -69  ),
          ( 125,    69,   -47,   -122,   -88,     24,    115,     103  ),
          ( 125,    24,  -115,    -69,    88,    103,    -47,    -122  ),
          ( 125,   -24,  -115,     69,    88,   -103,    -47,     122  ),
          ( 125,   -69,   -47,    122,   -88,    -24,    115,    -103  ),
          ( 125,  -103,    47,     24,   -88,    122,   -115,      69  ),
          ( 125,  -122,   115,   -103,    88,    -69,     47,     -24  )
      );
  </code></pre>