Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who invented the zero based
Message
De
25/11/2011 14:17:25
 
 
À
24/11/2011 23:10:39
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01529748
Message ID:
01529815
Vues:
35
>>I imagine that it's because in the binary system, 11 only equals decimal 3 because 2^0 + 2^1 = 3. Otherwise, you'd have 2^1 + 2^2 = 6. If the 1st position isn't '0', then how would you represent decimal '1' in the binary system?
>
>While internally it is like that, if, in .NET for example, some items are one based as oppose to zero based, I assume that, on the other end, they could have made all of them available either as zero based or one based but not a mix of both.

I assume, like you, that they could have, but since internally, it starts at 0, it probably just seemed natural to do it the same way externally; at least, at first. Later somebody probably thought it seemed odd to start at 0, so changed it, and since then, everybody creating a portion of a language does it whichever way feels most natural to hiim/herself. You have to wonder if anybody is enforcing any standards over an entire project.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform