11 references to ToString
Microsoft.Build (4)
Logging\TerminalLogger\TerminalLogger.cs (4)
452string duration = (e.Timestamp - _buildStartTime).TotalSeconds.ToString("F1"); 462var testDuration = (_testStartTime != null && _testEndTime != null ? (_testEndTime - _testStartTime).Value.TotalSeconds : 0).ToString("F1"); 531string duration = project.Stopwatch.ElapsedSeconds.ToString("F1"); 621string duration = project.Stopwatch.ElapsedSeconds.ToString("F1");
Microsoft.CodeAnalysis.Features (1)
Copilot\CopilotChangeAnalysisUtilities.cs (1)
65return timeSpan.TotalMilliseconds.ToString("G17");
Microsoft.DotNet.XUnitAssert.Tests (1)
Sdk\ArgumentFormatterTests.cs (1)
146 Assert.Equal(Math.PI.ToString("G17"), ArgumentFormatter.Format(Math.PI));
Microsoft.ML.FastTree (3)
TreeEnsemble\InternalRegressionTree.cs (3)
1214sbGainPValue?.Append(_gainPValue[n].ToString("0.000e00") + toAppend); 1229sbThreshold.Append(threshold.ToString("R") + toAppend); 1294sbThreshold.Append(((double)0.5).ToString("R") + toAppend);
Microsoft.ML.Transforms (1)
Expression\Tokens.cs (1)
176res = Value.ToString("R");
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
840public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => _value.ToString(format);