@monsieuricon also in C (starting with C23) and C++ (since C++14) with apostrophes:
int a = 1'048'576, b = 0xAAAA'AAAA;
@monsieuricon Same thing in Ruby...and presumably other languages
@monsieuricon another neat thing is for the base to be distinct also.
https://www.blog.pythonlibrary.org/2017/01/11/new-in-python-underscores-in-numeric-literals/
@monsieuricon I feel that changing conventional numbers into unconventional representations of numbers is fundamentally a bad idea. Maybe it's harmless? It feels like it's not.
@monsieuricon That's was something I knew at one time, but had totally forgotten about.
@monsieuricon It's interesting that this works, but not German, etc., style formating:
>>> 1.200,30
(1.2, 30)
>>> 1_200.30
1200.3
@monsieuricon I think this comes from #Ada language.
@monsieuricon Notably first introduced in Ada, and then subsequently popularised in Perl. I think quite a few languages support it these days, as it is truly a great readability improvement for large numbers.
@monsieuricon nice feature. Might be interesting to see this in Tcl too, though it would likely break things.
@monsieuricon yup! this works in PHP too. Iām a PHP Dev learning Python. It was a nice surprise when I learned that it works it both languages