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<string>(int(100 * convert<double>(str)));

But this doesn't work, I get this string "0". What is wrong?

I furthermore used this check:

if (isStrDbl(str))...

But although the string is "0.8", isStrDbl returns "false".

Many thanks in advance and regards
Uwe

Reply via email to