[Solved] Why i am unable to convert string to double?


The answer is not the same.
The string “13.45” and the floating value 13.45 will be displayed in the same manner. If you want to confirm that result holds a float value try printing result+1 instead of result, it will behave like a normal float.

5

solved Why i am unable to convert string to double?