title: How to format a number with exact of decimal number without rounding in javascript?
body: <p>Let say i have a number</p>
  <pre><code>const number = 122.333444555666
  </code></pre>
  <p>i want  to write a function that will return the exact decimal's number that i want. For example</p>
  <pre><code>formatFunction(number, 5) return 122.33344
  formatFunction(number, 7) return 122.3334445
  formatFunction(number, 12) return 122.333444555666
  formatFunction(number, 15) return 122.333444555666000
  formatFunction(number, 20) return 122.33344455566600000000
  </code></pre>
  <p>I tried with toFixed() but i end up with some exception . For ex</p>
  <pre><code>12.111222333.toFixed(18) return '12.111222333000000617'
  </code></pre>
  <p>I also try Intl but it always rouned up. Any idea?</p>