[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Do you start counting at 0 or 1?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 122
Thread images: 18

File: Fotolia_48924750_XS.jpg (57KB, 424x283px) Image search: [Google]
Fotolia_48924750_XS.jpg
57KB, 424x283px
Do you start counting at 0 or 1?
>>
I start at 0, but I count to 10 :^)
>>
Only arabs can use the number 0 if your not arab you start with I and count to X
>>
Starting with 0 is fucking stupid.
>>
File: thecount-bats.png (2MB, 1517x2048px) Image search: [Google]
thecount-bats.png
2MB, 1517x2048px
>Ah ah, zero
>Ah ah, one
>Ah ah, two
>Ah ah, four
>Ah ah, eight
etc
>>
>>61503359
By arab you mean indian, right
>>
>>61503246
In theory you start iterating at 1. But if you are a code monkey you start at 0.
>>
>>61503470
It doesn't matter, ytpeople have no business using it.
>>
File: h5g3etjnacmazg8oq17z_400x400[1].jpg (14KB, 400x400px) Image search: [Google]
h5g3etjnacmazg8oq17z_400x400[1].jpg
14KB, 400x400px
I start at 1 like any sane being/language would
>>
>>61503491
>ytpeople
What does that mean?
>>
>>61503246
Depends on the numbering system used.

For most purposes, you start at 0 (nothing) and go to 1 (one thing).
>>
File: muhancestors.jpg (543KB, 2304x2304px) Image search: [Google]
muhancestors.jpg
543KB, 2304x2304px
>>61503470
Pajeet, fuck off already. The system came from the Indus Valley, which is Pakistan.
>>
>>61503492
>>61503480
Starting at 1 is, for most purposes, a stupid default.

Real problems more often have a initial state of "nothing" and it goes to "one thing". No iteration has been done, one iteration has been done. Basket arrives empty, machine dropped an apple in it so now there is one apple. Stuff like that.
>>
>>61503359

>we came up with 0 some millennia ago so that excuses us from being subhuman monkeys who failed to contribute anything for the rest of our existence.
>>
>>61503503
People who didn't invent anything other than incest and fucking dogs, but colonized African and Asian nations, genocided their people and stole their culture.
>>
>>61503542
>we came up with sombraros some millennia ago so that excuses us from being subhuman monkeys who failed to contribute anything for the rest of our existence.
>>
>>61503535
>I have something and try something with it X times
>stupid
>>
>>61503545
Is this some fantasy world setting?
>>
>>61503545
>People who didn't invent anything other than incest and fucking dogs

You sound very jelly. I guess it's hard for you living in a world where everything of value was made by whites.
>>
>>61503545
Sounds like African and Asian nations are fucking trash, then. They couldn't even defend themselves from a bunch of inbred dogfuckers.
>>
>>61503521
Pakistan is simply the Muslim India
>>
>>61503559
No, multiplication is fine, as is the initial state of 1 in more special cases.

But generally speaking, you start accounting whatever you do at "nothing has been done yet". It's the saner default, and more close to reality.
>>
1 because I write fortran
>>
>>61503580

Pakistan it self is 4 major ethnic groups around the Indus River. Most of these barely exist in India. Learn actual history please
>>
>>61503597
1 because I write Lua.
>>
Zero isn't a number, so starting at it makes no sense. That's what happens when non-mathematicians are in charge i suppose.
>>
The 0 is implied.
>>
>>61503580
>>61503599

Would you dumb niggers stop arguing. Nobody cares you had one good idea thousands of years ago. Your countries are nothing but AIDS infested ghettos where everybody shits on the street, your only claim to fame these days is rape and terrorism. Maybe start focusing on yourselves instead of being jealous of whitey all day long.
>>
>>61503246
depends what i'm fucking counting faggot. Don't be an autistic retard.
>>
>>61503691
This. The right tool for the right job. For example, for your sex partners, I don't even need to use an array.
>>
I don't know mate it's all ones and zeros.
>>
File: U+2115.svg.png (4KB, 170x155px) Image search: [Google]
U+2115.svg.png
4KB, 170x155px
1
>>
>>61503739
Let 0 be a natural number...
>>
File: Edsger_Wybe_Dijkstra.jpg (231KB, 800x1067px) Image search: [Google]
Edsger_Wybe_Dijkstra.jpg
231KB, 800x1067px
0
pic related
>>
>>61503662
this
like if i counted out placing apples on a cleared table, the initial state is 0 [apples on the table], but i would only call out from 1 onwards

when a value must be used for all states, such as when writing a computer program, the initial state should be 0
>>
>>61503535
>Starting at 1 is, for most purposes, a stupid default.
no u

show me your finger 0
>>
>>61503835
Pic related.
>>
>>61503545
>People who didn't invent anything other than incest and fucking dogs

https://squawker.org/analysis/pedophilia-in-islam-90-of-pakistani-street-children-are-sexually-abused/
>>
>>61503756
Let i be a real number
>>
I start at 0 for arrays and loops, 1 everywhere else. To do anything else is sign of cancer
>>
File: bang.jpg (42KB, 620x387px) Image search: [Google]
bang.jpg
42KB, 620x387px
>>61503246
I end at 0, technically..

3... 2... 1... GO
>>
>>61503845
exactly that's why you start with 1
>>
>>61503246
always with zero, imagine starting at one with ten already in place, it would be eleven.
>>
File: a.jpg (3KB, 98x100px) Image search: [Google]
a.jpg
3KB, 98x100px
>>61503835
here, i am holding 0 fingers up
>>
>itt
>retards
>>
>>61503907
start with ONE then
>>
>>61503853

>Eight of the nine perpetrators are Pakistani, a country wherein 70% or more of the population is the product of incest.
>>
>>61503880
>2017
>21st century
thanks, faggot
>>
>>61503920
when raising your hand in anticipation of counting something on your fingers, do you raise it with one finger already raised?
>>
>>61503936
because you are living IN the 21st century dumass
>>
>>61503966
so? it's also the 2017th year
>>
File: dyalog.jpg (9KB, 400x400px) Image search: [Google]
dyalog.jpg
9KB, 400x400px
>>61503246
At ⎕IO, the Index Origin.
>>
>>61503939
>do you raise it with one finger already raised
>one finger
>one
there you said it yourself by accident
>>
>>61503979
i said that intentionally
>>
>>61503939

Not him but that's a stupid comparison. Arrays are meant to hold something, you can't count apples from position 0 because that would imply you have and don't have an apple at the same time. Every position in the array implies that certain thing exists, the concept of zero implies the opposite. All counting of anything must always start at 1, logically speaking.
This is exactly what's wrong with koders, you lack basic mathematical concepts.
>>
>>61503974
yeeahs?
>>
>>61503986
you still said it because all natural counting start with 1
>>
>>61504001
>2016 and 20th century wouldn't be preferable
>liking one-offs all over the place
>>
>>61503772
related how?
>>
Is counting a technology?
>>
>>61503246
Depend on context.
I'm not mentally retarded so I can choose the appropriate version give a situation.
>>
>>61503988
>you can't count apples from position 0 because that would imply you have and don't have an apple at the same time
Yes, you very often start from no apples and then the apples come in.

Or you get down to no apples when you sell them or they or or whatever. A sensible scale goes from 0 to whatever and back if you count down.
>>
>>61503246
I start by the final number -1.
>>
File: s.png (95KB, 1021x902px) Image search: [Google]
s.png
95KB, 1021x902px
>>61504023
>>
>>61503461
so 11 = 10?
>>
>>61503988
> This is exactly what's wrong with koders, you lack basic mathematical concepts.
Coders are the ones that work the most with mathematics apart from mathematicians, and unlike mathematicians they (often, not always) managed to make their languages more easily workable and less ambiguous.

Standard maths is a shitty notation with implicit symbol conflicts (https://en.wikipedia.org/wiki/List_of_mathematical_symbols) and useless duplicate notations (muh fancy integral graphics rather than function notation) all over the place.
Programming languages are actually doing better by now.
>>
>>61503988
0 indicates you have none of that thing
most if not all things start at 0, but are only counted or acknowleged once it reaches 1
same with time, when a race starts, the timer is 0, after a second has passed, it becomes 1. 0 through 1 is the first second
>>
File: 1494533337268.png (230KB, 300x297px) Image search: [Google]
1494533337268.png
230KB, 300x297px
>>61503246
Zero is a pleb-level concept used only by faggot mathematicians and ancient sand-niggers.

Use the proper Western-civilization concept of "nothing", and you'll realize that you can logically avoid most of the pencil pushing that (((al)))gebra forces upon you.

The first number is 1/9999. . .th. Less than that is (not a thing). There are no "zeroes and ones" in computers. There are electrical signals and the lack thereof.

I'm vomiting in my mouth for even using Indo-Arabic numerals for convenience' sake. Truthfully, Greek's alphabetic numeral system is far superior and makes numerals far less long.
>>
>>61504071
You start at 0s because that's just how it is in most real situations.

Unlike what you said, even 0.0005s might be a result if you measure something, it doesn't have to be 1s.
>>
>>61504020
>i can't into understanding
>>
0 doesn't come before 1
>>
>>61504105
>Unlike what you said, even 0.0005s might be a result if you measure something, it doesn't have to be 1s.
"seconds" is just an example, i'm simply referring to the next value measured following 0
>>
>>61504111
>can't either
>>
>>61503582
>first loop iteration is 0
>implies you did something to something 0 times
>but you already did something once

Zero state is what something is in before the loop starts.
>>
This is trolling, no way people are this stupid. If I put two apples on a table and ask you to count them, do you go "0, 1" and then say there's only 1 apple on the table?
>>
>>61504180
No, but while placing the apples, the apple-placer would iterate "no apples, one apple, two."
>>
>>61503674
This copy-pasta would work with any ex colonialist country.
>Murrica post 69.
>Rusky post 86.
>>
>>61504160
no u
>>
>>61503246
> counting
> indexing
Pick one.
>>
>>61503835
>You see my finger ?
>Now turn around and bend over, do you see my finger ?
>>
>>61504135
> following 0
You already started with 0s then, which answers the topic here.

And the next value can actually be 0.05s, doesn't have to be 1.
>>
File: 1459031312061.jpg (9KB, 251x189px) Image search: [Google]
1459031312061.jpg
9KB, 251x189px
>>61504226
>mfw
>>
i start at 1 when talking to people because i am self-aware enough to realize that starting at zero only makes sense in programming concepts and i don't want to lose friends by behaving like an autistic retard

however sometimes when writing technical documents i actually do include a "step 0" when indicating some kind of "initial state" or "setup phase" before any operation actually takes place
>>
When using arrays in C I start counting from 1 and use 0 as a flag.
>>
start at 0 but use base16
>>
>>61503567
Name one thing that wasn't stolen from POC.
>>
>>61504474

>we wuz

Get back to doing yard work Tyrone before the guards see you slacking.
>>
>>61504615
>WE WUZ VIKANGZ AND WE WUZ ROMANS AND WE WUZ EGYPTIANS TOO
>>
>>61504474
The works of: Riemann, Grothendieck, Galois
(bar Lambert and Saccheri)
>>
>>61503461
Thank you anon. I am currently reliving my childhood as we speak.

Ah ah ah.

https://youtu.be/VhDJe8IP8A0
>>
>>61504680
>>61504654
>>
>>61503246
t. lua """"dev""""
>>
I start counting at -2,147,483,648
>>
>>61503461
>>61505062
https://www.youtube.com/watch?v=B-Wd-Q3F8KM
>>
File: Domenico-Fetti_Archimedes_1620.jpg (605KB, 1364x1818px) Image search: [Google]
Domenico-Fetti_Archimedes_1620.jpg
605KB, 1364x1818px
>>61503246
>Do you start counting at 0 or 1?
At 1, of course. Only a maths illiterate would start at 0.
>>
>>61505518
Yeah good luck cleanly accessing the first item of an array retard
>>
>>61505756
you are confusing the first item and the address of that first item.

the length of an array doesn't begin at 0; when you define a array of 1 in C, for example, you do
int array[1];

not
int array[0];


in C, the [] operator doesn't work on arrays but on pointers, never forget that.
>>
File: 1500726962076.png (743KB, 831x609px) Image search: [Google]
1500726962076.png
743KB, 831x609px
>>61503535
IT STARTS WITH ONE THING
>>
>>61505857
>in C
>still using c
Thanks for the helpful response pajeet
>>
>>61505882
That's we're all this comes from. Usually the length of the array is not the same as the last index in the array, unless you're using Lua.
>>
>>61505878
/thread
>>
>>61506367
>unless you're using Lua.
or any language that has not been badly designed.
>>
>>61503246
Start at 0 for counting seconds
Start at 1 for everything else

I wouldn't count the 0th apple in the fruit bowl and neither should you.
>>
File: 7Mxh2P.jpg (92KB, 768x768px) Image search: [Google]
7Mxh2P.jpg
92KB, 768x768px
>>61505878
I DONT KNOW WHY
DOESNT EVEN MATTER HOW HARD I TRY
>>
>>61505191
??????
>>
I don't count
>>
Zero isn't a number, it's a concept
>>
>>61503246
When counting "fucks given," I start at zero. Especially when OP is a faggot shitting up the board with /b/-tier shitposts.
>>
>>61503246
0 is a real number
>>
File: 1494747607388.jpg (34KB, 433x480px) Image search: [Google]
1494747607388.jpg
34KB, 433x480px
>>61503246
Depends, are you counting items or offsets?

This isn't really a complicated concept here, OP.
>>
File: 8383838.png (901KB, 690x460px) Image search: [Google]
8383838.png
901KB, 690x460px
>>61503246
>counting from 0
why the fuck are computer scientists such weirdos?
>im a special snowflake! i count from 0 instead of 1 haha isnt that so quirky and random? idk im just such a nerd btw i love doctor who and science xD
Computer Science is the tumblr of mathematic disciplines, it isn't even "science" at all, but "dude bill nye lmao! dude le black science dude!"
>>
>>61503246
Zero makes a 100% sense in an array because of pointers (which is probably how most of language works). 0 being the base address and then 1 being an offset and so on so forth.
>>
>>61508816
only if you confuse arrays with pointers
>>
0, duh, otherwise all your array, vectors, etc will shit the bed.
Only for some specific case you could use vector[i+1] if you shouldn't start counting from 0.
>>
zero because it's obvious that 10-0=11.
>>
>>61508297
Why do you hate Computer Scientists?

Also, I count from 0. For example. 00, 01, 02...
>>
I don't take seriously anyone who says 1.
>>
>>61505878

It doesn't end, either. Where is anon now? 694,000?
>>
I count from 1 to 10.
0 is kind of the Pluto of numbers, imo.
>>
>>61503246

If it's time then it's objectively incorrect not to start at 0
>>
>>61504094
Go home Varg. You're drunk and I bet you thing Southern Europeans are still non-white unironically
>>
Begone, pests
Thread posts: 122
Thread images: 18


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.