digit-separator Questions
2
Solved
I already saw a lot of question teaching how easy is to do it with comma as thousands separator:
>>> format(1123000,',d')
'1,123,000'
But if I try to use a dot, it goes nuts:
>>&...
Munro asked 24/1, 2018 at 4:3
9
Solved
How do I format 1000000 to 1.000.000 in Python? where the '.' is the decimal-mark thousands separator.
Rarotonga asked 1/4, 2011 at 12:50
2
Solved
I'd like to change the thousands separator such that {:,}.format(1234) in Python uses a different character. The separator should be '\u066c'.
How can I set this without affecting any other locals...
Superpower asked 20/10, 2016 at 12:12
3
Solved
While clang compiles the following line, g++ 6.1 complains about the digit separator (see live example on Coliru):
auto time = 01'23s;
Which compiler, if any, is correct according to the C++14 s...
Miranda asked 26/10, 2016 at 12:23
1
Solved
C++14 introduced the concept of digit separators into literals, along the lines of 3'141'592'653'589. Now this is a great feature for readable code but I was wondering whether it allowed quotes bef...
Runny asked 14/9, 2015 at 3:8
1
© 2022 - 2025 — McMap. All rights reserved.