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:
- It uses the locale of the user, so ##.## converts the '.' to ',' in germany.
- There is no difference between before comma and after comma numbers, so you cannot format 12.50 to 1250. Also required in 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.