Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197571
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Formatted Integer With Specified Number Of Digits |
| Date | 2025-10-24 01:14 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <87ikg467io.fsf@nightsong.com> (permalink) |
| References | <10d23rk$2bc2b$1@dont-email.me> |
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> >>> "%#0.3x" % 2
> '0x002'
f'0x{2:03x}
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Formatted Integer With Specified Number Of Digits Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-19 07:26 +0000
Re: Formatted Integer With Specified Number Of Digits Gilmeh Serda <gilmeh.serda@nothing.here.invalid> - 2025-10-19 09:17 +0000
Re: Formatted Integer With Specified Number Of Digits songbird <songbird@anthive.com> - 2025-10-19 10:01 -0400
Re: Formatted Integer With Specified Number Of Digits Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-19 21:39 +0000
Re: Formatted Integer With Specified Number Of Digits Paul Rubin <no.email@nospam.invalid> - 2025-10-24 01:14 -0700
Re: Formatted Integer With Specified Number Of Digits Alan Bawden <alan@csail.mit.edu> - 2025-10-24 06:38 -0400
csiph-web