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 #:
67149
Status:
Open
Updating the numbers and currency format support
Project:
Delphi
Build #:
12.0.3170.16989
Version:
12.0
Submitted By:
Adam Wu
Report Type:
Suggestion / Enhancement Request
Date Reported:
9/24/2008 3:09:32 PM
Severity:
Commonly encountered problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All versions
Internal Tracking #:
266103
Resolution:
None
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
8
Description
The code for formatting float and currency is very dated (Win9x maybe) and could use some serious updates.
In Windows XP (probably the most popular OS used for Delphi projects right now):
1. Numbers and currency have independent decimal separators (and they are strings); Delphi only uses the one for numbers (and it is a Char);
2. Numbers and currency have independent decimal digits; Delphi only uses the one for currency;
3. Numbers and currency have independent thousand separators (and they are strings); Delphi only uses the one for numbers (and it is a Char);
4. Numbers and currency have independent and adjustable digit groupings; Delphi uses a hard-coded one.
5. Numbers and currency have independent negative symbols (and they are strings); Delphi uses a hard-coded character.
6. Numbers and currency have independent negative number format; Delphi only uses the one for currency;
7. For pure fractional numbers, one can specify whether to show the leading zero; Delphi does not use this setting;
8. For numbers, one can specify whether to use localized digit symbols; Delphi does not use this setting;
9. Currency have its own positive number format; Delphi does not use this setting.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments
None
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