Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why not 1*(0.5-0.4-0.1) = 0?
Message
From
07/01/2005 11:14:19
 
 
To
07/01/2005 09:16:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Database:
MS SQL Server
Miscellaneous
Thread ID:
00974881
Message ID:
00975127
Views:
53
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform