Re: Formatted Integer With Specified Number Of Digits
Paul Rubin <[email protected]> Fri, 24 Oct 2025 01:14:39 -0700
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
Lawrence D’Oliveiro <[email protected]> writes: > >>> "%#0.3x" % 2 > '0x002' f'0x{2:03x}