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

NameTypeDescription
nintNonnegative integer input.

Return Value

int

Integer result, exact for integer arithmetic.

Working Example

Example Snippetpython
import mathprint(math.isqrt(80))
Python Reference