-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Add number round #3533
Add number round #3533
Conversation
🦋 Changeset detectedLatest commit: fb6a244 The changes in this PR will be included in the next version bump. This PR includes changesets to release 31 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I'm trying to remove lodash from my project in favor of native node features and effect features and this one was missing. |
9c4ba21
to
5eb5ad7
Compare
packages/effect/src/Number.ts
Outdated
* import { round } from "effect/Number" | ||
* | ||
* assert.deepStrictEqual(round(5,1234, 2), 5.12) | ||
* assert.deepStrictEqual(nextPow2(17), 32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed (nextPow2
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for that. I started to write the doc and stopped to write the tests first and forgot to come back to it.
There was also a mistake on the first line, by the way
36a5be1
to
00583f3
Compare
00583f3
to
89c3411
Compare
Type
Description
Adds
Number.round
method to which you can pass a precision.* assert.deepStrictEqual(round(5,1234, 2), 5.12)
Related