zlacker

[parent] [thread] 2 comments
1. metada+(OP)[view] [source] 2024-10-08 00:05:16
What is the purpose of the "_" in "0x100_0000"? AFAICT, it doesn't change anything.

  >>> 0x100_0000
  16777216
  >>> 0x100_0001
  16777217
  >>> 0x1000001
  16777217
  >>> 0x100000_1
  16777217
replies(2): >>a57721+p >>grotor+91
2. a57721+p[view] [source] 2024-10-08 00:09:26
>>metada+(OP)
It visually separates digits in numeric literals.
3. grotor+91[view] [source] 2024-10-08 00:16:51
>>metada+(OP)
Compare for readability: 0x0100000100001000 vs 0x0100_0001_0000_1000
[go to top]