22 references to AwayFromZero
aspire (2)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
394return (int)Math.Round(durationNano / 1_000_000.0, 0, MidpointRounding.AwayFromZero);
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Aspire.Dashboard (2)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
394return (int)Math.Round(durationNano / 1_000_000.0, 0, MidpointRounding.AwayFromZero);
src\Shared\DurationFormatter.cs (1)
65var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);
Microsoft.Build (2)
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (2)
36return Math.Round(timeSpan.TotalMilliseconds, 0, MidpointRounding.AwayFromZero); 44return Math.Round(percentage, 1, 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)
666return RoundDipForDisplayMode(value, pixelsPerDip, MidpointRounding.AwayFromZero);
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (2)
53case MidpointRounding.AwayFromZero: 191public static T Invoke(T x) => T.Round(x, MidpointRounding.AwayFromZero);
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
2483else if (mode == MidpointRounding.AwayFromZero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1375case MidpointRounding.AwayFromZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
399case MidpointRounding.AwayFromZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
2006MidpointRounding.AwayFromZero => discardedComparedToHalf >= 0,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (2)
259MidpointRounding.AwayFromZero => midpointComparison >= 0, 358case MidpointRounding.AwayFromZero:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1864case MidpointRounding.AwayFromZero: 1910case MidpointRounding.AwayFromZero:
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));