4 ms·
The source http://imgur.com/DrEinPB http://imgur.com/DrEinPB states the problem using "256" not "2^8". I'm not sure if the tweeter is trying to be clever, but
by msm23 10y ago
The source http://imgur.com/DrEinPB http://imgur.com/DrEinPB states the problem using "256" not "2^8". I'm not sure if the tweeter is trying to be clever, but he isn't saving any characters by using the exponential notation.
If you're trying to save characters in a tweet, you don't have any savings in using exponential over decimal for base two until 2^14.
- masklinn 10y agoOr the tweeter is smart enough to realise a likely origin of the limitation and uses that directly. Considering the tweeter in question, I'd go with the second one.
- joneholland 10y agoExcept I doubt it's a bit math bug, or the warning would be very clear about 16, 32, 64 axle trains etc It's likely that the axle count is stored as a 8-bit unsigned integer.
- masklinn 10y ago> Except I doubt it's a bit math bug What are you even talking about? > It's likely that the axle count is stored as a 8-bit unsigned integer. Which is exactly the point of writing it as 2^8…
- joneholland 10y agoSomehow I read the original tweet as "by powers of 2" and not 2 to the 8th. I blame my lack of morning coffee :)
- tlrobinson 10y agoI think the author was just suggesting this is due to 256 causing an 8 bit unsigned integer to overflow.
- kps 10y ago2⁸?
- Bromskloss 10y agoSee? It still takes three characters.