Hacker News new | past | comments | ask | show | jobs | submit login
Gaining Bitwisdom from Keyboard Shortcuts (mikerourke.dev)
6 points by codelikeawolf on Feb 20, 2022 | hide | past | favorite | 2 comments



If you need a lot of flags you can use BigNums:

1n << 68n = 295147905179352825856n

(1n << 68n).toString(2) = '100000000000000000000000000000000000000000000000000000000000000000000'


I don't understand why you need a gap between mod bits




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

Search: