sounddrill,

Base 5?

sounddrill,

I’m just learning about number systems!

psud,

Hmm. I use 1, 2, 4, 8, 16 (I seldom need to count beyond 31 (and have up to five more bits if needed), or to zero)

Xtallll,
@Xtallll@lemmy.blahaj.zone avatar

0✊

8☝️

9🤘

12✌️

17🤙

25🤟

31✋

SHITPOSTING_ACCOUNT,

Don’t forget 4.

darcy,
@darcy@sh.itjust.works avatar

or 16 🖕

SHITPOSTING_ACCOUNT,

16 would be 👍 (going by the mapping in this post, or the pinky if you do thumb = 1).

4 is 4 either way.

18107,

132

grue,

Oh, for fuck’s sake.

Your thumb is not your zeroth finger; it’s your first finger.

Starting from zero is for situations when you’re counting the left (or first) edge of containers used to hold items. For example, if you wanted to count the number of balls you could hold in the spaces between your fingers, you start with 0 because the number of balls you can hold between your thumb and {} is 0.

DmMacniel,
@DmMacniel@feddit.de avatar

But length of container gives you for example 3, and it has a size of 4. Explain that.

TonyTonyChopper,
@TonyTonyChopper@mander.xyz avatar

length measures the spaces between the spaces between your fingers, so you can fit 3 balls between the 4 balls between your fingers

spauldo,

Also indexes. Once you’ve been bitten enough by off-by-one errors this actually becomes a pretty handy double-check.

darcy,
@darcy@sh.itjust.works avatar

indexes in memory can be thought of as the address of the leftmost bit in a byte (container)

spauldo,

Sorry, too busy counting digital outputs on Modicon PLCs to think about that stuff.

Cargon,

Indices vs offsets. A lot of people mistake the two because they took CS 101 and thought it was so cool to say I sTaRt cOuNtInG fRoM zErO.

hairinmybellybutt,

You’re angry

darcy,
@darcy@sh.itjust.works avatar

bro has never heard of a joke

Phoenix3875,

There you are, our CS doctor.

fubo,

Doc, if you can’t count to 1023 on your fingers, you might be doing CS wrong!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines