fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · edit-28 months agoBiology OPmander.xyzimagemessage-square18fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1imageBiology OPmander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · edit-28 months agomessage-square18fedilink
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up1·edit-28 months agoComputers multiply by adding, subtract by adding, i’m not sure how division goes but i’m sure that’s addition too.
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up0·8 months agoLooked into it. It literally is.
minus-squareXavienth@lemmygrad.mllinkfedilinkEnglisharrow-up0·8 months agoSubtract divisor from dividend until you hit zero. Number of subtractions is the quotient. Don’t ask about non-whole numbers.
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up0·8 months agoThe remainder is the amount of overflow when you go below zero.
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up0·edit-28 months agoIt 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.
Computers multiply by adding, subtract by adding, i’m not sure how division goes but i’m sure that’s addition too.
Looked into it. It literally is.
But…how?
Subtract divisor from dividend until you hit zero. Number of subtractions is the quotient. Don’t ask about non-whole numbers.
The remainder is the amount of overflow when you go below zero.
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.