I have a string string rx;
and this string has the following type of data: “v=123.111i=10.123r=1234\r\n”
So, what I want:
-have a 3 floating point(or some other decimal var) variables, “v” i” and “r”.
-scan the string… with a format string like “v=%.3fi=%.3fr=%.3f\r\n” where %.3f is the value (3 decimal digits)
Use
RegexandDouble.Parse:explain:
and I used
Double.Parse. It converts thestringrepresentation of a number to its double-precision floating-point number equivalent.