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 11:14:19
 
 
À
07/01/2005 09:16:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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:
00975127
Vues:
54
SNIP
>You are right; BCD can be either packed or unpacked. I had quite forgotten about the details, since I never used them in actual practice.
>
>So, for calculations that are 100% accurate (at least for plus and minus), you have to use BCD - it doesn't matter so much whether it is packed or not.
>
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform