S3tuit commented on issue #5598:
URL: https://github.com/apache/hop/issues/5598#issuecomment-3307161402

   Yes, Hop uses Java DecimalFormat. However, Hop currently builds the 
formatter with locale symbols; via `Const.DEFAULT_DECIMAL_SEPARATOR = new 
DecimalFormatSymbols(DEFAULT_LOCALE).getDecimalSeparator()`. If the user 
doesn’t explicitly set symbols, "10.5" fails under comma-decimal locales, 
likely what Pedro hit. Even if the format is specified to `#.#`, the 
decimal/grouping symbols still depend on the locale. And the locale may be 
`','` for decimal.
   
   I think that when a format is present (like #.#) and the user didn’t 
explicitly set decimal/grouping symbols, they should be inferred from the 
format pattern.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to