- #1

SLSCoder

- 4

- 0

I have the value of the variable but it's not a 'hard' number. We'll call the variable x.

I need to calculate how many columns I'll have if the columns and rows will be the same, or the columns will be 1 minus (floor) the number of rows.

If the variable x = 10 then the columns would be 3 and there would be 4 rows, the last row would only have a value in the first column.

**How can I calculate for the number of columns I need given the variable x?**