the largest half is 65504. what happens if you convert 65505 to half? 65535? round up, down, undefined? I can't actually find this anywhere
-
-
Replying to @FioraAeterna
it's a weird case because regular floats can represent the full integer range, so it doesn't come up there
5 replies 0 retweets 1 like -
Replying to @FioraAeterna
@FioraAeterna The same thing happens with 32-bit int and single-precision, or 64-bit int and double, and depends on rounding mode.2 replies 0 retweets 1 like -
Replying to @RichFelker
@RichFelker but there's no 32-bit int that maps to floating point infinity1 reply 0 retweets 0 likes
Replying to @FioraAeterna
@FioraAeterna Oh yes sorry, I was being dumb. You need 128-bit integers for that to happen. The same can happen with double->float tho.
12:37 PM - 25 Oct 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.