Floor

A function common to many programming languages that returns the next lowest integer value by rounding the value down if necessary.

Sqrt

The `sqrt` function returns the positive square root of a number in several programming languages.

Others

Example |
---|

The other suggestion keep repeating until x stops changing does not work either because for non-perfect squares x will alternate between the floor and the ceiling of the root â because of integer mathematics the term n x will alternate when x is slightly smaller or slightly from question Finding square root of an integer on MIPS assembly |