You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C++ 14 supports optional digit separators like 1'000'000, 0b1010'1010, or 0xFF'FF'FF
Underscores are also acceptable in literals as described in PEP 498 and PEP-515 using "{number:,}", also for larger numbers a comma separated thousand separator is accepted as in "{number:,}".
It would be great if grouping numbers with separators ("_", "'", ",") are supported. Python groups decimal numbers in 3 digits (thousands), binary, octal and hex numbers are grouped in 4 digits (4 bits, 12 bits, or 32 bits respectively).
NOTE: Python does not allow grouping by a single quote though! "'"
C++ 14 supports optional digit separators like
1'000'000
,0b1010'1010
, or0xFF'FF'FF
Underscores are also acceptable in literals as described in PEP 498 and PEP-515 using
"{number:,}"
, also for larger numbers a comma separated thousand separator is accepted as in"{number:,}"
.It would be great if grouping numbers with separators
("_", "'", ",")
are supported. Python groups decimal numbers in 3 digits (thousands), binary, octal and hex numbers are grouped in 4 digits (4 bits, 12 bits, or 32 bits respectively).NOTE: Python does not allow grouping by a single quote though!
"'"
More references here:
The text was updated successfully, but these errors were encountered: