3 ms·
> 0 is actually what I'd expect as an answer. Even on very modern Python you get Given a four byte mantissa, it should be 1 for anything under and equal to 2^3
by trynton 6y ago
> 0 is actually what I'd expect as an answer. Even on very modern Python you get
Given a four byte mantissa, it should be 1 for anything under and equal to 2^32 and 0 for anything over 2^32. Instead it outputted some random number. A bug in checking the flags or some-such. Or maybe a bug in the float to string routine.
- zokier 6y agoThe sign takes one bit off the mantissa.