Closed Dominator86 closed 7 years ago
float.Parse throws a System.FormatException on my system because of the unrecognized decimal mark.
You have to pass CultureInfo.InvariantCulture as the second parameter to parse "dot" as the decimal mark on all cultures:
float progressPCT = float.Parse(tokens[CommandArgumentIndex.PROGRESS_STATUS_PROGRESS_PCT], CultureInfo.InvariantCulture);
Integrated your change in v1.01.
Thanks for your contribution!
float.Parse throws a System.FormatException on my system because of the unrecognized decimal mark.
You have to pass CultureInfo.InvariantCulture as the second parameter to parse "dot" as the decimal mark on all cultures:
float progressPCT = float.Parse(tokens[CommandArgumentIndex.PROGRESS_STATUS_PROGRESS_PCT], CultureInfo.InvariantCulture);