Better HN
topnewbestaskshowjobs
Log inSign up

dimsumbytes

16 karma · joined Mar 17, 2022 (4y ago) · 3 submissions

Submissions

comment 4y ago · link · parent

Again, not trying to be that guy, but technically it still breaks:

  a = -0.0
  b = 0.0

comment 4y ago · link · parent

Sorry to be that guy, but this doesn't work in languages that use floats:

  let a = 9007199254740992;
  let b = 1;

  a = a + b
  b = a - b
  a = a - b

  a // 1
  b // 9007199254740991

comment 4y ago · link · parent

It's been 13 years. How long would we wait before we declare it unproductive?