-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Implement Number.prototype.toPrecision
#349
Comments
I think I can handle this. :) I assume it'll live in number/mod.rs? |
Yes. There already is the |
Hello, I'm finally moving on this, sorry for the delay. I understand what we are trying to do with toPercision, but I have a few questions concerning the ECMA documentation:
Thanks! Best, |
Actually I think I just figured out #1. It's just a fancy way of saying n * 10^(e - p + 1) - x Best, |
Hi @zanayr Maybe checking other engines implementation will help: Hope this helps :) |
Hello @zanayr, how is this going? |
Would you like us to un-assign it from you? Or would you like to create a draft PR to get some feedback / help? |
I probably should be un-assigned, I don't have the bandwidth to work on it right now, and I didn't really get that far to begin with. Apologies again, as soon as I am more free, I will return for to help on this project. |
Hey ! I'm currently working on this. |
The
toPrecision()
method returns a string representing theNumber
object to the specified precision.More information:
The text was updated successfully, but these errors were encountered: