dunham Posted June 18, 2020 Share Posted June 18, 2020 Number input: 10000.1654687 -> Trying to get swiss numberthousand seperator = ' (single quote)decimal seperator = , (comma) Decimals do not work (thousand sep do) -> new DecimalFormat("#,##0.#").getInstance($P{REPORT_LOCALE}).format(10000.1654687) -> 10'000.165Decimals do not work (thousand sep do) -> new DecimalFormat("#,##0.").getInstance($P{REPORT_LOCALE}).format(10000.1654687) -> 10'000.165Works but without proper locale ??? -> new DecimalFormat("#,##0.#").format(10000.1654687) -> 10,000.2When I just print $P{REPORT_LOCALE} -> de_CHWhat's the problem here? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now