Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/Format + Float    [ Add a report in this area ]  
Report #:  88365   Status: Closed
Failure in FmtBCD.BcdDivide when decimal position = 0 and DecimalPoint = comma
Project:  Delphi Build #:  8.1
Version:    7.0 Submitted By:   Dick Boogaers
Report Type:  Basic functionality failure Date Reported:  9/24/2010 3:11:37 AM
Severity:    Critical / Show Stopper Last Updated: 9/25/2010 6:15:48 AM
Platform:    All versions Internal Tracking #:  
Resolution: Duplicate  Resolved in Build: : Delphi 2006
Duplicate of:  88257
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Delphi 7 (6 as well) rises always an invali integer error when dividend and divisor are integer and DecimalSeparator is different from '.' It's due to wrong string creation in AdjustDecimalPosition function using explicitely '.' in case when DecPos = 0.
Later in _Multiply the string is converted and found not to be correct, resulting in the strange message: "0.2 is not a valid integer" (sic!).

This is a sample project as requested in QC 88257.


Steps to Reproduce:
See sample project.
Workarounds
None
Attachment
BCDBug.zip
Comments

Tomohiro Takahashi at 9/25/2010 6:14:59 AM -
Indeed, with Delphi 7, I get an error. But it is another error('0.2 is not valide number') in my environment.
And, I tested sample project with Delphi 2006 and Delphi XE. But, I get no error.
So, I think your issue has been already fixed.

Server Response from: ETNACODE01