26 references to Round
Aspire.Dashboard (1)
Components\Controls\SummaryDetailsView.razor.cs (1)
204await LocalStore.SetUnprotectedAsync(GetSizeStorageKey(), Math.Round(panel1Fraction, 3));
Microsoft.Build (3)
BackEnd\BuildManager\BuildManager.cs (1)
2277Math.Round(projectGraph.ConstructionMetrics.ConstructionTime.TotalSeconds, 3),
Logging\BaseConsoleLogger.cs (1)
811"{0,5}", Math.Round(elapsedTime.TotalMilliseconds, 0));
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
1766"{0,5}", Math.Round(elapsedTime.TotalMilliseconds, 0));
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
30private static int RoundMetricValue(double value) => (int)Math.Round(value, 0);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
30private static int RoundMetricValue(double value) => (int)Math.Round(value, 0);
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
32private static int RoundMetricValue(double value) => (int)Math.Round(value, 0);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
30private static int RoundMetricValue(double value) => (int)Math.Round(value, 0);
Microsoft.Maui.Controls (1)
Stepper\Stepper.cs (1)
38 return Math.Round(((double)value), stepper.digits).Clamp(stepper.Minimum, stepper.Maximum);
Microsoft.ML.TestFramework (3)
BaseTestBaseline.cs (3)
639delta = Math.Round(delta, digitsOfPrecision); 654delta2 = Math.Round(expected - actual, digitsOfPrecision); 684return scale * Math.Round(value / scale, digitsOfPrecision);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
ApplyCompressionNegotiation.cs (1)
352Math.Round(1.0 / (compressedAsset.FileLength + 1), 12).ToString("F12", CultureInfo.InvariantCulture);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
229value = Math.Round(_inactivityTimespan.TotalMinutes, 2).ToString(CultureInfo.InvariantCulture);
NuGet.Common (2)
DatetimeUtility.cs (2)
35result = Math.Round(result, 0); 39result = Math.Round(result, 1);
PresentationFramework (7)
MS\Internal\Documents\RowCache.cs (6)
310double roundedOffset = Math.Round(offset, _findOffsetPrecision); 318double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision); 319double rowHeight = Math.Round(_rowCache[i].RowSize.Height, _findOffsetPrecision); 410startOffset = Math.Round(startOffset, _findOffsetPrecision); 411endOffset = Math.Round(endOffset, _findOffsetPrecision); 417double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision);
System\Windows\Documents\TextStore.cs (1)
2849double angleCos = Math.Round((radCos * 180) / Math.PI, 0);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
30private static int RoundMetricValue(double value) => (int)Math.Round(value, 0);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
682public static double Round(double x, int digits) => Math.Round(x, digits);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1863significand = Math.Round(significand, 8);