Hacker News new | past | comments | ask | show | jobs | submit login

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



Compare for readability: 0x0100000100001000 vs 0x0100_0001_0000_1000


It visually separates digits in numeric literals.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: