Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Square root of a number #75

Open
VictorQueiroz opened this issue Nov 22, 2018 · 2 comments
Open

Square root of a number #75

VictorQueiroz opened this issue Nov 22, 2018 · 2 comments

Comments

@VictorQueiroz
Copy link

Is it possible to use long.js library to retrieve the square root of a number?

@dcodeIO
Copy link
Owner

dcodeIO commented Nov 22, 2018

There's no sqrt method yet, but would make sense to provide one.

@webmaster128
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants