mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
keep the value away from getting rounded
This commit is contained in:
parent
bd52851daa
commit
4e1aff0f42
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue