|
FORUM MESSAGE
|
|
You are reading a General forum message.
Re: about numeric representation....the comma and the point decimal se
Author: Israel Luengo
Date Posted: 2004-12-17 08:42:39
Code:
AnsiString Temporal;
Temporal = "10,000.05" ;
int pos;
pos = Temporal.Pos("."); //we search for point position
if ( pos ) {
Temporal.Delete(pos,1); //erase a chr from position
Temporal.Insert(pos,","); //insert the comma
PD. This is relationed with the numeric representation in other countries (some places use the point like decimal separator....in other places the people uses the comma
Rgds
Israel Luengo (thanks to DrBeat for improvement)
REPLY TO THIS MESSAGE?
Top
You can post a reply to this General message using the form below:
|
|