[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]
|
|
Programs that use floating point numbers (i.e. with decimal points), need some special
considerations to work correctly in countries whose decimal separator is not a
dot, "." or that reads string versions of numbers generated by systems
whose decimal separator does not agree with the user's system.
Here's a program, DecimaSep, than incorporates all three tips including a replacement for Delphi's "Val" procedure for testing. Addendum December 3, 2008: A viewer recently pointed out that the handling of decimal separators should also be prepared to handle the thousands separator since the US usage (x,xxx.xx) has the separator roles reversed in most of Europe (x.xxx,xx). DecimalSep2 addresses this with two changes.
Click here to download International Decimal Demo source code
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2018, Gary Darby All rights reserved. |