bsqrt#

Return the integer square root of $x.

Synopsis#

Math::GMP->new(6)->bsqrt;      # 2 — int(sqrt(6))
Math::GMP->new(49)->bsqrt;     # 7

Equivalent to broot(2) but noticeably faster. Croaks on negative arguments inside libgmp.