Y
Hacker News
new
|
ask
|
show
|
jobs
by
dvt
1749 days ago
I think casting a NaN to an int will always just return gibberish, signed or not. In fact, this is explicitly undefined behavior in C.