Discuss more elegant way for formatting text as currency #1469
Open
Description
This is the current code to format text as currency:
Lines 177 to 205 in ae5d789
It's a very manual process of
- checking characters that can appear in currency strings but shouldn't be considered for the digits count (minus, comma, etc)
- checking string length
- adding a comma every three digits, from right to left
I'm opening this request to discuss if there's a more elegant and appropriate way of doing this instead of reinventing the wheel like we have right now.
Metadata
Assignees
Labels
The current implementation is not ideal. We'd be better off with a new design for a solution.Something doesn't seem right in the code. It may not be a bug, but it probably needs fixing!This is a request for something that makes OpenApoc work better or more intuitivelyThis is a request for a new thing to be added to OpenApocThis cannot currently be replicated - please provide more information and savegame examplesA ticket that relates to how the user interacts with the game through the UIHelp is required in making this fix/feature complete. If you can code or test, please take a look!A feature or change that makes playing the game more streamlinedA an issue containing features that need to be completed for a "full" gaming experience.Something that relates to the way languages, numbers or text are handled in the game