3 ms·
I think the following makes more sense: '{}'.format(format_decimal_with_prepended_spaces(42, 4))
by amelius 12y ago
I think the following makes more sense:
'{}'.format(format_decimal_with_prepended_spaces(42, 4))
- hobarrera 12y agoThis approach makes it really hard to change the formatting template. I might have several, which change at runtime (or even user-configurable). With this approach, my own app needs to do the actually formatting, while `format()` merely concats.