Watch, Follow, &
Connect with Us
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

Server Response from: ETNACODE01