long.js
long.js copied to clipboard
Square root of a number
Is it possible to use long.js library to retrieve the square root of a number?
There's no sqrt method yet, but would make sense to provide one.
There is an integer square root algorithm that can be ported. If you prefer Rust over C, see this implementation.
Would be good to call this API isqrt instead of sqrt to manage expectations of the output type and precision.