11 references to ToString
Microsoft.Build (4)
Logging\TerminalLogger\TerminalLogger.cs (4)
452
string duration = (e.Timestamp - _buildStartTime).TotalSeconds.
ToString
("F1");
462
var testDuration = (_testStartTime != null && _testEndTime != null ? (_testEndTime - _testStartTime).Value.TotalSeconds : 0).
ToString
("F1");
531
string duration = project.Stopwatch.ElapsedSeconds.
ToString
("F1");
621
string duration = project.Stopwatch.ElapsedSeconds.
ToString
("F1");
Microsoft.CodeAnalysis.Features (1)
Copilot\CopilotChangeAnalysisUtilities.cs (1)
65
return 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)
1214
sbGainPValue?.Append(_gainPValue[n].
ToString
("0.000e00") + toAppend);
1229
sbThreshold.Append(threshold.
ToString
("R") + toAppend);
1294
sbThreshold.Append(((double)0.5).
ToString
("R") + toAppend);
Microsoft.ML.Transforms (1)
Expression\Tokens.cs (1)
176
res = Value.
ToString
("R");
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
840
public string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] string? format) => _value.
ToString
(format);