Single-precision floating point: float.parsefloat (a);
Double-precision floating point: double.parsedouble (a);
It turns out that someone has already answered.