Re: C++ string question

2007-12-06 Thread Jean-Marc Lasgouttes
Kornel Benko <[EMAIL PROTECTED]> writes: >> But although the string is "0.8", isStrDbl returns "false". > > You may try "0,8" (zero comma eight). I it works, we have a bug. JMarc

Re: C++ string question

2007-12-06 Thread Uwe Stöhr
> You may try "0,8" (zero comma eight). Thanks for the suggestion, but my fault was that the string was not "0.8" but "=0.8" - stupid me. thanks and regards Uwe

Re: C++ string question

2007-12-06 Thread Kornel Benko
Am Donnerstag, 6. Dezember 2007 schrieb Uwe Stöhr: > I have the following problem: > > I have a string named "str" with the value "0.8". It should be converted to a > double, then > multiplied by 100, and finally reconverted to a string. > > I used this code: > > convert(int(100 * convert(str)

C++ string question

2007-12-06 Thread Uwe Stöhr
I have the following problem: I have a string named "str" with the value "0.8". It should be converted to a double, then multiplied by 100, and finally reconverted to a string. I used this code: convert(int(100 * convert(str))); But this doesn't work, I get this string "0". What is wrong? I