Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BitSet & Integer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00919018
Message ID:
00919076
Vues:
13
>So why is that SQL Server integer definition is:
>
>integer or int
>Has a length of 4 bytes, and stores numbers from -2,147,483,648 through 2,147,483,647.

It's probably handling the math slightly differently. Consider that -2 ^ 31 = -2,147,483,648 and 2 ^ 31 - 1 = 2,147,483,647. This is how SQL Server defines an integer. VFP does the subtraction on both equations not just the one, reserving that for zero.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform