The user can specify a file output format at the GUI. Especially he can define a number format. The first idea was to let him specify a format which can be used with DecimalFormat, but DecimalFormat has at least two main disadvantages for my usecase:
StringFormat cannot do this either. So my question is if you know any library which already handles this problem, or do i have to program a simple formatter myself.
DecimalFormatSymbols otherSymbols = new DecimalFormatSymbols(Locale.ENGLISH);
DecimalFormat decimalFormat = new DecimalFormat("##.##");
decimalFormat.setDecimalFormatSymbols(otherSymbols);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With