keep the value away from getting rounded

This commit is contained in:
tian-lt 2021-06-29 11:35:02 +08:00
commit 4e1aff0f42

View file

@ -544,9 +544,7 @@ namespace CalculatorApp
return; return;
} }
// CSHARP_MIGRATION: TODO: sender.Text = val.ToString("G", System.Globalization.CultureInfo.InvariantCulture);
// Due to different culture, some regions use comma instead of dot as the decimal point
sender.Text = val.ToString("0", System.Globalization.CultureInfo.InvariantCulture);
} }
private void VariableAreaClicked(object sender, RoutedEventArgs e) private void VariableAreaClicked(object sender, RoutedEventArgs e)