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

toPrecision vs. toFixed #12

Open
webdesserts opened this issue Dec 22, 2014 · 0 comments
Open

toPrecision vs. toFixed #12

webdesserts opened this issue Dec 22, 2014 · 0 comments

Comments

@webdesserts
Copy link
Owner

So all along I've been using the term "precision" and I didn't know that there was actually a toPrecision() function that does something completely different to toFixed().

var num = 10.23456
num.toFixed(3) // 10.235
num.toPrecision(3) // 10.2

It might be good to provide an option for both of these. Either way, I should reassess the default.

@webdesserts webdesserts added this to the v2 milestone Dec 22, 2014
@webdesserts webdesserts modified the milestones: v1, v2 Jan 31, 2015
@webdesserts webdesserts removed this from the v1 milestone Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant