Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
RTL
Delphi
Arithmetic
ConvUtils
Date - Time
DateUtils
File Management
Format + Float
Input/Output
Math Unit
Memory, Pointer, Address
Null-terminated strings
Other Classes
Other RTL
Pascal Strings
Regular Expressions
RTL Exceptions
Text Files
Thread support
Typed/Untyped Files
WinAPI
You are not logged in.
Help
Print
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.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us