15 references to Round
aspire (2)
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Utils\ConsoleActivityLogger.cs (1)
699var pointIndex = Math.Clamp((int)Math.Round((startPosition + endPosition) / 2, MidpointRounding.AwayFromZero), 0, width - 1);
Aspire.Dashboard (1)
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Aspire.Hosting.Browsers (2)
BrowserLogsEventLogger.cs (2)
201details.Add($"{Math.Round(encodedDataLength.Value, MidpointRounding.AwayFromZero).ToString(CultureInfo.InvariantCulture)} B"); 274var durationMs = Math.Round((endTimestamp.Value - startTimestamp.Value) * 1000, MidpointRounding.AwayFromZero);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (2)
201details.Add($"{Math.Round(encodedDataLength.Value, MidpointRounding.AwayFromZero).ToString(CultureInfo.InvariantCulture)} B"); 274var durationMs = Math.Round((endTimestamp.Value - startTimestamp.Value) * 1000, MidpointRounding.AwayFromZero);
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
403< 8 => (int)Math.Round(parallelLevelToUse / 2.0, MidpointRounding.AwayFromZero), 404_ => (int)Math.Round(0.75 * parallelLevelToUse, MidpointRounding.AwayFromZero),
PresentationCore (1)
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
648return Math.Round(value * pixelsPerDip, midpointRounding) / pixelsPerDip;
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
687public static double Round(double x, MidpointRounding mode) => Math.Round(x, mode);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1420return Round(value, mode);
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
1048dataGridViewColumn.DesiredFillWidth = (int)Math.Round(desiredFillWidth, MidpointRounding.AwayFromZero); 1203mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero)); 1275mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero));