Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Variable Bugs ?
Message
 
 
À
29/04/2003 09:54:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00782662
Message ID:
00782843
Vues:
9
Hi Fabio,

>Hi
>
>On VFP a numeric variable is a double memory value with display format
>( this simplifies the life to the VFPT, but complicates my life remarkably ).

The numeric values are stored internaly in VFP either as 4 bytes integer or 8 byte floating point.

>
>A small example:
>
>Z=1073741824
>? Z && OK : INTEGER FORMAT
>
>X=-2147483648
>? X && OK : FLOAT
>
>? BITSET(0,30) && OK : INTEGER FORMAT
>
>? BITSET(0,31) && OK : FLOAT
>
>Y=BITSET(0,31)
>? Y && BUG: INTEGER FORMAT
>
>

The BITxxx VFP functions operate on integers and return integer as result.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform