-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Refactor number.float
parameter precision
to fractionDigits
#1596
Comments
Team Decision: We want support both parameters: |
I will take this. |
Please wait for #1675 to be merged. |
Continuation of the discussion that came up in #1855 (comment) @matthewmayer suggested adding a new method for stepped values to separate it from float. |
@matthewmayer Do you have a suggestion for a method name for the new Maybe |
Team decision The proposal to move the |
Team Decision We don't need this for v8.0. |
Related issue: #2186 |
So basically
Would you allow negative fractionDigits? ( |
I'm not sure whether we should actually forbid badly readable input (unless it has other side effects). |
So probably allow between -18 and +18 (or whatever range works without issues) |
If we already have a check for the range then we can limit it to useful values. E.g. |
Clear and concise description of the problem
We want to refactor the behavior of the
precision
parameter ofnumber.float
to be adjusted toNumber#toFixed
behavior.This wont affect the legacy
datatype.float
method!Suggested solution
precision
->fractionDigits
So we might need an addition parameter like
step(s)
orprecision
and then talk about how this behavesAlternative
No response
Additional context
Extracted from
The text was updated successfully, but these errors were encountered: