title: How to force Postgres to calculate with numeric precision
body: <p>I have a .net core application using dapper with Postgresql.
  Windows, PostgreSQL 12.0, compiled by Visual C++ build 1914, 64-bit</p>
  <p>When i do simple calculation in the select-statement, then i get different results if i do not provide fractions:</p>
  <pre><code>select round(25358-25358/105*100,0);
  </code></pre>
  <blockquote>
  <p>1258</p>
  </blockquote>
  <pre><code>select round(25358.0-25358.0/105*100,0);
  </code></pre>
  <blockquote>
  <p>1208</p>
  </blockquote>
  <p>What's the reason and what's the best way to get correct numeric result?</p>