Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BitTest'ing numbers larger then 32 bits
Message
De
02/01/2021 02:40:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/01/2021 17:09:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01677684
Message ID:
01677707
Vues:
82
>
>? 18014398509481983 = 18014398509481984
>
>
>returns .T., which is wrong, of course. That will give about 55 bits that can be stored as numeric values, but even those will require an external library to perform the calculations.
>
>By using string binary data to hold the flags, you won't need external tools and won't be limited to 64 bits (you could easily escalate to 128, 256, and so on).

Which I did already, years ago, in a field of c(200) type, which held statuses for other fields in the same record. Used only two bits per byte, so there was room for expansion :). Luckily, the expansion never happened, it was already complicated as it was.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform