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

feat: add very large amount support #91

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nesquikm
Copy link

  • Updated Money JSON serialization format
  • Simplified Money formatting with default pattern
  • Improved currency precision calculation
  • Added tests for large scale and integer handling
  • Enhanced pattern encoding and formatting flexibility

…ber handling

- Updated Money JSON serialization format
- Simplified Money formatting with default pattern
- Improved currency precision calculation
- Added tests for large scale and integer handling
- Enhanced pattern encoding and formatting flexibility
Copy link
Collaborator

@bsutton bsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the json changes look to be breaking.
Not necessarily a problem but is this an improvement for end users?

@nesquikm
Copy link
Author

so the json changes look to be breaking. Not necessarily a problem but is this an improvement for end users?

This is improvement for architecture. What the point having from/to json in Fixed (that works perfectly) and parsing it here as string?

@bsutton
Copy link
Collaborator

bsutton commented Feb 22, 2025 via email

@nesquikm
Copy link
Author

We can wrap Fixed.fromJson(...) in try...catch and, if it fails, call Fixed.parse(...). This will provide seamless migration from existing (stored somewhere) records. What do you think?

@bsutton
Copy link
Collaborator

bsutton commented Feb 24, 2025 via email

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

Successfully merging this pull request may close these issues.

2 participants