title: NodeJS: MySQL returns inaccurate decimal values
body: <p>I've a MySQL database storing decimal values (DECIMAL(32, 12)).
  When I select the values using HeidiSQL, the values are shown correctly (e.g. 15922.638440778302). But when I do the same in NodeJS using the MySQL binding (<a href="https://github.com/mysqljs/mysql" rel="nofollow noreferrer">https://github.com/mysqljs/mysql</a>), it shows me 15922.63844077830<strong>3</strong>.</p>
  
  <p>My SQL-Query is pretty simple:</p>
  
  <pre><code>SELECT SUM(`amount`) FROM `balances`;
  </code></pre>
  
  <p>Any idea what can cause the difference? Maybe do I need to specify the precision during the MySQL initialization in NodeJS? At the moment, I don't specify anything other than the login credentials:</p>
  
  <pre><code>let mysql = require('mysql').createPool({
    host: global.dbconfig['dbhost'],
    database: global.dbconfig['dbname'],
    user: global.dbconfig['dbuser'],
    password: global.dbconfig['dbpass']
  })
  </code></pre>