format("{: 3}",byte)
Returns the value of byte in the width of 3 spaces (byte always <= 256 ; 3 digits)
That would be beautiful if we can ask format("{:␣3}",byte) where ␣ is a litteral U+2007.
It's a space with the same width of digits.
Was made for digits alignements.
format() with U+2007
format() with U+2007
(Alan Turing) « What would be the point of saying that A = B if it was really the same thing? »
(Albert Camus) « Misnaming things is to add to the misfortunes of the world. »
(Albert Camus) « Misnaming things is to add to the misfortunes of the world. »
Re: format() with U+2007
All of the existing formatting flags, including the space, are handled by the C runtime. I'm not interested in extending it.
Who is online
Users browsing this forum: No registered users and 36 guests