Skip to content
Tcl Source Code View Ticket
Login

View Ticket

format %#d not consistent with other radix prefixes or TIP 472 description

Closed / Fixed891a74b94129d29a8829847574e6eba9d448c35eCreated 3 years agoUpdated 3 years ago
Descriptionplain2023-08-28 07:49:06
Tip 472 gives the example:

% format "%#d" 128
   0d128

On the builds of 8.7 and 9 that I have available (on windows) I get:

% format "%#d" 128
128

whereas for other radix prefixes it seems to work as expected:
% format "%#b" 128
0b10000000
% format "%#x" 128
0x80
Referenced by3
griffin Ticket [891a74b941]: 3 changes [History diff]2023-09-15 01:17:28
griffinplain2023-09-16 16:43:32
Fixed with [f46e5b193a].
jan.nijtmanswiki2023-09-18 06:33:10

[Backported] to 8.7 as well

Log in (anonymous is fine) to add a comment.