Board index » cppbuilder » converting integer to string

converting integer to string


2005-07-01 05:37:36 AM
cppbuilder90
is there a VCL function that i can use to convert an integer
to AnsiString but with delimiters inside it?
for example
10069 to 10.069
1000 to 1.000
and so on...
 
 

Re:converting integer to string

"qyte" < XXXX@XXXXX.COM >wrote in message
Quote
is there a VCL function that i can use to convert
an integer to AnsiString but with delimiters inside it?
Have a look at FormatFloat().
Gambit
 

Re:converting integer to string

AnsiString also has a sprintf statement
AnsiString s;
int x = 10069;
s.sprintf("%0.2f", (double)x / 1000.0);
Doug
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"qyte" < XXXX@XXXXX.COM >wrote in message
news:42c4661f$ XXXX@XXXXX.COM ...

>is there a VCL function that i can use to convert
>an integer to AnsiString but with delimiters inside it?

Have a look at FormatFloat().


Gambit


 

{smallsort}