Solved

Decimal separator

Posted on 2001-06-07
3
348 Views
Last Modified: 2010-04-06
Is there a simple way to tell which decimal separator (e.g ' or . ) the system uses?
0
Comment
Question by:ljanssens
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
ID: 6165254
Yep, DecimalSeparator:

ShowMessage(DecimalSeparator);
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6165262
You can also change it if you want:

DecimalSeparator := '.';

DecimalSeparator := ',';
0
 
LVL 4

Expert Comment

by:DMN
ID: 6165478
Yes. If you wish to change separator within your Delphi application, use DecimalSeparator global variable. But if you wish to redefine SYSTEM decimal separator, then change it in WIN.INI file, section [intl], ident iDECIMAL. Just set it equal to whatever you want.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now