3 ms·
This is quite a nice library, I'll try it. Enhancement requests: - Option to insert commas or underscores every three digits (for decimal) or four digits (hex
by jhallenworld 11y ago
This is quite a nice library, I'll try it. Enhancement requests:
- Option to insert commas or underscores every three digits (for decimal) or four digits (hex/binary/octal).
- Option to print floating in engineering format (make exponent a multiple of 3).
- Option to print floating but with a specific given exponent.
- vitaut 11y agoThanks for the suggestions. There has been some work to make formatting more customizable (https://github.com/cppformat/cppformat/issues/235 https://github.com/cppformat/cppformat/issues/235). This will enable extensions like the ones you suggest while keeping the library itself lean. Generally useful extensions like thousand separators can be added to the core library of course. They are actually on my TODO list.