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

Fix an ERXNumberFormater problem with zero and patterns like 0.00000000 #924

Merged

Conversation

spelletier
Copy link
Member

Fix a problem where ERXNumberFormater returns a BigDecimal with scientific notation when parsing a zero value using a patterns with multiple zero decimal place like this one "0.00000000" that use tu return "0E-8". The returned value is not usable with the same formater that fail to format it back.

This is very bad using an AJaxInPlaceEditor that parse-format-parse when displaying values, the app stall in an infinite loop.

…tific notation when parsing a zero value using a patterns with multiple zero decimal place like this one "0.00000000" that use tu return "0E-8". The returned value is not usable with the same formater that fail to format it back.

This is very bad using an AJaxInPlaceEditor that parse-format-parse when displaying values, the app stall in an infinite loop.
@spelletier spelletier changed the title Fix an ERXNumberFormater problem with z/ro and patterns like 0.00000000 Fix an ERXNumberFormater problem with zero and patterns like 0.00000000 Dec 12, 2019
@darkv darkv merged commit 47f4782 into wocommunity:master Feb 16, 2020
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