zlacker
[return to "The largest number representable in 64 bits"]
◧
1. matja+5c6
[view]
[source]
2023-11-27 20:54:05
>>tromp+(OP)
IEEE754 64-bit representation already has infinity:
uint64_t x = 0x7ff0000000000000ULL; printf("%f\n", *(double *)&x);
output:
inf
But you could use a representation where 0 is 0, and 1 is infinity, saving 63 bits...
◧◩
2. tromp+0d6
[view]
[source]
2023-11-27 20:58:12
>>matja+5c6
I don't consider infinity to be a number though. Especially not in a largest number contest.
◧◩◪
3. lowq+js6
[view]
[source]
2023-11-27 22:09:20
>>tromp+0d6
Let 0 correspond to zero, and 1 corresponded to Rayo's number. Crisis averted!
[go to top]