I want to convert a "string" number to double, but I'm getting an error.
Here is an example:
var x="1.0";
var p = x.toDouble();
The last code explode with the next error message:
Could not find symbol toDouble.
Symbol Not Found Error
But if I use toFloat() instead of toDouble it works ok.
var x="1.0";
var p = x.toFloat();
Any ideas to convert a string to double?
Thanks!