As Charlieface points out, you need to readjust how you do things. Instead of using the inline formatting, use string.format
int decimalPlaces= 5;
string fmt="RiseTime: Avg: {0:F" + decimalPlaces.ToString() + "}, Max: {1:F" + decimalPlaces.ToString() +"}, Min: {2:F"+ decimalPlaces.ToString() +"}
";
string result=string.format(fmt, AveRise, MaxRise, MinRise);
Obviously using this method you can change the variable "fmt" as needed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…