fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · edit-2před 2 rokyBiology OPmander.xyzimagemessage-square18fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1imageBiology OPmander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · edit-2před 2 rokymessage-square18fedilink
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up1·edit-2před 2 rokyComputers 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·před 2 rokyLooked into it. It literally is.
minus-squareXavienth@lemmygrad.mllinkfedilinkEnglisharrow-up0·před 2 rokySubtract 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·před 2 rokyThe remainder is the amount of overflow when you go below zero.
minus-squareOmega_Haxors@lemmy.mllinkfedilinkEnglisharrow-up0·edit-2před 2 rokyIt 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.