this post was submitted on 25 Feb 2024
723 points (96.3% liked)

Science Memes

16624 readers
912 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

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. 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

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
723
Biology OP (mander.xyz)
submitted 2 years ago* (last edited 2 years ago) by fossilesque@mander.xyz to c/science_memes@mander.xyz
 
you are viewing a single comment's thread
view the rest of the comments
[–] Omega_Haxors@lemmy.ml 8 points 2 years ago (1 children)

Looked into it. It literally is.

[–] SturgiesYrFase@lemmy.ml 2 points 2 years ago (4 children)
[–] Johanno@feddit.de 4 points 2 years ago

Once you go down to logic gates. A XOR gate for example makes 1+1 = 0

[–] icydefiance@lemm.ee 4 points 2 years ago* (last edited 2 years ago) (1 children)

The other replies are simplifying too much. Just adding or subtracting in a loop would be far too slow.

A multiplier will find the partial products by using AND gates, and then sum them, which is very similar to long multiplication as they teach you in school. This article explains it pretty well.

Division is more complicated. It's sort of done like long division, but apparently that is slow and there's some magic with two's complements that can make it faster. Honestly I don't fully understand it yet.

[–] SturgiesYrFase@lemmy.ml 2 points 2 years ago

That article was really good. I feel like if someone explained it to me at a pub or party I could somewhat talk about it without sounding like a total ludite.

[–] Xavienth@lemmygrad.ml 2 points 2 years ago (1 children)

Subtract divisor from dividend until you hit zero. Number of subtractions is the quotient. Don't ask about non-whole numbers.

[–] Omega_Haxors@lemmy.ml 2 points 2 years ago

The remainder is the amount of overflow when you go below zero.

[–] Omega_Haxors@lemmy.ml 2 points 2 years ago* (last edited 2 years ago)

It recursively subtracts until the number goes at or below zero. The iterations is the output and the reminder is how much it went below zero.