Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why not 1*(0.5-0.4-0.1) = 0?
Message
De
07/01/2005 12:41:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/01/2005 11:14:19
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Database:
MS SQL Server
Divers
Thread ID:
00974881
Message ID:
00975183
Vues:
43
>But is it not the case that BCD is not available generally, at least on the Intel platform?
>
>On IBM mainframes, and I believe in their AS/400 series too, "packed decimal" is fully integrated into the INSTRUCTION SET in the hardware. In other words, there are specific instructions to ADD PACKED, SUBTRACT PACKED, etc.
>
>cheers

I am afraid that is so - they are not available at the hardware level. The idea is to check for their availability in a database server, or in specific languages. In VFP, for example, the best you can get is Currency, which is limited to four decimals, plus, you may sometimes want to handle larger numbers than this format provides.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform