bsqrt#

Return the integer square root of $x.

תקציר#

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.