this post was submitted on 17 Oct 2024
703 points (99.0% liked)
Science Memes
10897 readers
2741 users here now
Welcome to c/science_memes @ Mander.xyz!
A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.
Rules
- Don't throw mud. Behave like an intellectual and remember the human.
- Keep it rooted (on topic).
- No spam.
- Infographics welcome, get schooled.
This is a science community. We use the Dawkins definition of meme.
Research Committee
Other Mander Communities
Science and Research
Biology and Life Sciences
- !abiogenesis@mander.xyz
- !animal-behavior@mander.xyz
- !anthropology@mander.xyz
- !arachnology@mander.xyz
- !balconygardening@slrpnk.net
- !biodiversity@mander.xyz
- !biology@mander.xyz
- !biophysics@mander.xyz
- !botany@mander.xyz
- !ecology@mander.xyz
- !entomology@mander.xyz
- !fermentation@mander.xyz
- !herpetology@mander.xyz
- !houseplants@mander.xyz
- !medicine@mander.xyz
- !microscopy@mander.xyz
- !mycology@mander.xyz
- !nudibranchs@mander.xyz
- !nutrition@mander.xyz
- !palaeoecology@mander.xyz
- !palaeontology@mander.xyz
- !photosynthesis@mander.xyz
- !plantid@mander.xyz
- !plants@mander.xyz
- !reptiles and amphibians@mander.xyz
Physical Sciences
- !astronomy@mander.xyz
- !chemistry@mander.xyz
- !earthscience@mander.xyz
- !geography@mander.xyz
- !geospatial@mander.xyz
- !nuclear@mander.xyz
- !physics@mander.xyz
- !quantum-computing@mander.xyz
- !spectroscopy@mander.xyz
Humanities and Social Sciences
Practical and Applied Sciences
- !exercise-and sports-science@mander.xyz
- !gardening@mander.xyz
- !self sufficiency@mander.xyz
- !soilscience@slrpnk.net
- !terrariums@mander.xyz
- !timelapse@mander.xyz
Memes
Miscellaneous
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For anyone who doesn't want to do the conversion, that's 17 days.
Or -15 days
Ominous
Mmm yes. 5 bit two's complement.
I shouldn't make fun of it we've definitly made some ISA that weird.
what's the general rule for translating negatives from binary? did you just do like 17 - 2 • (-1) or something?
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.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?
My low level is a tad rusty from when I learned the C side in school, but if I recall the not operator resolves as a single Boolean (0 or 1 in true C), whereas compliment comes back as however many bits you put in - a not operation per bit.
In C, the not operator is
!
and the compliment operator is~
It also has a max of 31 days possible. Which has... implications.
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
🤔 .... What implications? ಠ_ಠ
They must sacrifice an undergrad on the 32nd day
This is actually how chromatography works. The mobile phase is 0.1% formic acid and 0.3% blood of the innocent.
Well, We work with what we have.
Unless it's a signed integer, then it's -1 and they're expecting something...
A 5 bit long signed integer? What kind of weird system you using ? :p
Because a 5 bit unsigned integer is so much better? :p
Two's complement
Only if you're using a sign bit rather than two's compliment (a sign bit allows for two representations of 0)
Or 11 in hexadecimal
B is 11 in hex though?
As in, 0x11 is 17 in decimal.
I did and I regret it