-
Notifications
You must be signed in to change notification settings - Fork 17
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 trailingZeros option to ValueView #1949
Conversation
🦋 Changeset detectedLatest commit: bd3995f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Visit the preview URL for this PR (updated for commit bd3995f): https://penumbra-ui-preview--pr1949-valueview-trailing-z-b3dlliw3.web.app (expires Wed, 25 Dec 2024 14:23:38 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 709d729610ef7a6369b23f1cb2b820a60cc685b1 |
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.
Perhaps next time the description would help, but could you give more detail on the use-case for this? Why are trailing zeros desirable in some cases?
I guess the reason for this is that Agree that it needs some more description |
If trailing zeros are never really desirable, how about we just set trailingZeroes on toFormattedString to false? |
And I still keep the default to false, as to keep the implementation the same as before (not changing it everywhere it's used) |
No description provided.