10 references to Round
aspire (1)
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Aspire.Dashboard (1)
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Microsoft.TestPlatform.CrossPlatEngine (2)
TestEngine.cs (2)
398< 8 => (int)Math.Round(parallelLevelToUse / 2.0, MidpointRounding.AwayFromZero), 399_ => (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)
685public 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)
1003dataGridViewColumn.DesiredFillWidth = (int)Math.Round(desiredFillWidth, MidpointRounding.AwayFromZero); 1158mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero)); 1230mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.AwayFromZero));