Math Functions
math.isqrt()
Find the floor of the exact square root of a nonnegative integer without floating-point rounding.
Formal Syntax & Structure
python syntaxpython
math.isqrt(n, /)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| n | int | Nonnegative integer input. |
Return Value
int
Integer result, exact for integer arithmetic.
Working Example
Example Snippetpython
import mathprint(math.isqrt(80))