19 references to AwayFromZero
Aspire.Dashboard (1)
Otlp\Model\DurationFormatter.cs (1)
42var 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.DotNet.XUnitAssert.Tests (4)
EqualityAssertsTests.cs (4)
2034 Assert.Equal(10.565, 10.566, 2, MidpointRounding.AwayFromZero); 2194 Assert.Equal(10.5655f, 10.5666f, 2, MidpointRounding.AwayFromZero); 4012 var ex = Record.Exception(() => Assert.NotEqual(10.565, 10.566, 2, MidpointRounding.AwayFromZero)); 4160 var ex = Record.Exception(() => Assert.NotEqual(10.5655f, 10.5666f, 2, MidpointRounding.AwayFromZero));
PresentationCore (1)
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
666return RoundDipForDisplayMode(value, pixelsPerDip, MidpointRounding.AwayFromZero);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (3)
48case MidpointRounding.AwayFromZero: 140case MidpointRounding.AwayFromZero: 242public static T Invoke(T x) => T.Round(x, MidpointRounding.AwayFromZero);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
2480else if (mode == MidpointRounding.AwayFromZero)
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1374case MidpointRounding.AwayFromZero:
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
401case MidpointRounding.AwayFromZero:
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1700case MidpointRounding.AwayFromZero: 1746case 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));