The square root of a number is a number such that
So, if a number is a perfect square, its square root is an integer. For example, the square root of 25 is 5, because .
If a number is not a perfect square, its square root is not an integer, which means that it is an irrational number, included between two integers.
If you want to find these two integers, you need to find two (consecutive) integers such that the first is "not enough", whereas the second is "too much".
Here's an example, suppose we want to find the square root of 20. We try some integers:
So, when we square 4 is slightly less than 20, and when we square 5 is slightly more than 20. This means that there must exist a number between 4 and 5 that, when squared, is exactly 20.
So, for sure
In order to round to the nearest integer, we consider that 4^2=16 was 4 units away from the goal (20), while 5^2=25 was 5 units away from the goal. So, 4^2 is nearest to the goal than 5^2, and so we round
For the record, we have
so our approximation was correct.