inari@piefed.zip to Programming@programming.devEnglish · 2 months agoA faster way to calculate the day-of-the-weekwww.benjoffe.comexternal-linkmessage-square11linkfedilinkarrow-up184
arrow-up184external-linkA faster way to calculate the day-of-the-weekwww.benjoffe.cominari@piefed.zip to Programming@programming.devEnglish · 2 months agomessage-square11linkfedilink
minus-squaredeepfriedchril @lemmy.worldlinkfedilinkEnglisharrow-up9·2 months agoIt’s how you change a number to/from positive/negative. The basic procedure is to represent the number in binary, invert all the bits, add 1.
minus-squareunderscores@lemmy.ziplinkfedilinkEnglisharrow-up4·2 months agoHow does that relate to the word “complement”
It’s how you change a number to/from positive/negative.
The basic procedure is to represent the number in binary, invert all the bits, add 1.
How does that relate to the word “complement”