Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who invented the zero based
Message
 
 
À
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:
01529791
Vues:
41
>>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.

The 1-based stuff is VB. The .NET designers didn't want to overchallenge them ;-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform