我有這樣的代碼格式文本框C#
private void timer1_Tick(object sender, EventArgs e)
{
textBox_Machine_X_Axis.Text = adsClient.ReadAny(ActPos_X, typeof(Double)).ToString();
...
輸出看起來是這樣的:
2489.24544554444
或-654.1
現在的問題,我如何格式化這個代碼,以便輸出看起來是這樣的2489.245
或-0654.100
可能重複的[字符串格式:負/正浮點數](http://stackoverflow.com/questions/4356185/string-formatting-negative-positive-floating-point-numbers) – AdrianHHH