Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread Has the way BCD behaves changed from Delphi 2007 to XE6?
Mon, Aug 4 2014 5:05 PMPermanent Link

George Feamster

I'm moving my application to XE6 and I'm getting slightly different results.

There's a field defined as bcd with a size of 3 (3 decimal places right?)

When I do a division I end up with 33.8276

When the D2007 program moves it into the field (f.copercent.value) I end up with 33.827  (plus when the cursor in debug mode is over the field name it says 33.827.  It posts and ends up as 33.827

When the XE6 program moves it into the field I end up with 33.828  (plus when the cursor in debug mode is over the field name it says 33.8276.  It posts and ends up as 33.828

This sounds like truncating vs rounding then truncating.

The D2007 vs is 4.37 b1
The XE6 version is 4.39 b2

Was this the result of a desired change?
Image