title: Knowing width and height of grid where the amount of elements are known?
body: <p>I've stumpled upon a problem that I can't solve. I am given the amount of elements to populate a grid with, but through this, I need to know (beforehand) what the width and height (in amount of elements) the grid should be.</p>
  
  <p>I would like the aspect ratio between width and height of the grid to be 1:1. Even with this simple aspect ratio, I fail at doing the calculations.</p>
  
  <p>Could someone help me?</p>
  
  <p><strong>Example provided below</strong></p>
  
  <p>Let's say I have 9 elements in total. The width and height of the grid would then be 3. This is easy (by using the square root of the amount of elements).</p>
  
  <p>But what about (for instance) 10 elements, or 11? With 10 elements, I would like either the width or height of the grid to be 4. Same with 11.</p>
  
  <p>How do I perform these calculations?</p>