You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading the YDW code, in string to double conversions you should at least use CultureInfo.InvariantCulture, otherwise in countries where the decimal separator is "comma" (like here in Italy) calls like this one:
if (double.TryParse(percentageNumberString, out var percentageNumber))
{
ProgressPercentageValue = percentageNumber;
}
will not work.
It could be changed in something like this: ProgressPercentageValue = double.Parse(percentageNumberString, System.Globalization.CultureInfo.InvariantCulture);
The text was updated successfully, but these errors were encountered:
Reading the YDW code, in string to double conversions you should at least use
CultureInfo.InvariantCulture
, otherwise in countries where the decimal separator is "comma" (like here in Italy) calls like this one:will not work.
It could be changed in something like this:
ProgressPercentageValue = double.Parse(percentageNumberString, System.Globalization.CultureInfo.InvariantCulture);
The text was updated successfully, but these errors were encountered: