-
Notifications
You must be signed in to change notification settings - Fork 123
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
Feature request: parsing to value in cents #186
Comments
@Arthur-Carbonari Unfortunately, the author of this library is not developing new features #169 (comment). I think the fastest way would be to do it yourself and open a PR. The author promised to pay some attention to the release of new versions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'd like to suggest an enhancement for the monetary input component of your library. Typically, monetary values are stored as integers, representing the smallest unit of a currency (like cents in the case of dollars or pence for pounds). This approach helps in avoiding floating-point precision issues.
Suggestion:
It would be highly beneficial if the component could automatically handle the conversion of entered monetary values into their integer representation. This feature would streamline the process of handling monetary inputs, ensuring that values are accurately and consistently stored in their smallest unit format.
Example:
When a user enters a value like $10.25, the component would automatically parse and convert this into 1025.
The text was updated successfully, but these errors were encountered: