It also has a max of 31 days possible. Which has… implications.
Comment on 10001
cobysev@lemmy.world 4 weeks ago
For anyone who doesn’t want to do the conversion, that’s 17 days.
chuckleslord@lemmy.world 4 weeks ago
Trainguyrom@reddthat.com 4 weeks ago
Among many other duties I manage the safety and claims database for an outsourced industrial cleaning company and let me tell you, some of the plants my company works struggle to make it a week without an accident, meanwhile some will go years without an accident. We also have one plant which had its last accident during the Bush Administration. Its absolutely wild how much safety can vary from one industrial facility to another
Slovene@feddit.nl 4 weeks ago
🤔 … What implications? ಠ_ಠ
fossphi@lemm.ee 4 weeks ago
They must sacrifice an undergrad ok the 32nd day
PumpkinSkink@lemmy.world 4 weeks ago
This is actually how chromatography works. The mobile phase is 0.1% formic acid and 0.3% blood of the innocent.
phoenixz@lemmy.ca 4 weeks ago
Unless it’s a signed integer, then it’s -1 and they’re expecting something…
DacoTaco@lemmy.world 4 weeks ago
A 5 bit long signed integer? What kind of weird system you using ? :p
gens@programming.dev 4 weeks ago
Two’s complement
phoenixz@lemmy.ca 2 weeks ago
Because a 5 bit unsigned integer is so much better? :p
computergeek125@lemmy.world 4 weeks ago
Only if you’re using a sign bit rather than two’s compliment (a sign bit allows for two representations of 0)
Entropywins@lemmy.world 4 weeks ago
Or 11 in hexadecimal
scholar@lemmy.world 4 weeks ago
B is 11 in hex though?
deadcade@lemmy.deadca.de 4 weeks ago
As in, 0x11 is 17 in decimal.
humblebun@sh.itjust.works 4 weeks ago
I did and I regret it
yardy_sardley@lemmy.ca 4 weeks ago
Or -15 days
Dabundis@lemmy.world 4 weeks ago
Ominous
carpelbridgesyndrome@sh.itjust.works 4 weeks ago
Mmm yes. 5 bit two’s complement.
I shouldn’t make fun of it we’ve definitly made some ISA that weird.
swag_money@lemmy.world 4 weeks ago
what’s the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
yardy_sardley@lemmy.ca 4 weeks ago
I used what known as 2’s compliment. Take the complement (flip all the bits - here that would give you
01110
which is 14) then add 1.swag_money@lemmy.world 4 weeks ago
thanks for the explanation! could you express it as a NOT operation plus one? like is that how it would be processed at a low level?