Y
Hacker News
new
|
ask
|
show
|
jobs
by
xxs
1553 days ago
you cant swap doubles like that though... b/c if any of them is a NaN or an infinity, it breaks down.
It works for integers (and pointers)
1 comments
charcircuit
1553 days ago
It also breaks due to rounding even if you don't have NaN or Inf.
link