19 references to AwayFromZero
Aspire.Dashboard (1)
Otlp\Model\DurationFormatter.cs (1)
42
var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.
AwayFromZero
);
Microsoft.Build (2)
Evaluation\Profiler\EvaluationLocationPrettyPrinterBase.cs (2)
36
return Math.Round(timeSpan.TotalMilliseconds, 0, MidpointRounding.
AwayFromZero
);
44
return 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)
666
return RoundDipForDisplayMode(value, pixelsPerDip, MidpointRounding.
AwayFromZero
);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (3)
48
case MidpointRounding.
AwayFromZero
:
140
case MidpointRounding.
AwayFromZero
:
242
public 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)
2480
else if (mode == MidpointRounding.
AwayFromZero
)
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1374
case MidpointRounding.
AwayFromZero
:
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
401
case MidpointRounding.
AwayFromZero
:
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (2)
1700
case MidpointRounding.
AwayFromZero
:
1746
case MidpointRounding.
AwayFromZero
:
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
1003
dataGridViewColumn.DesiredFillWidth = (int)Math.Round(desiredFillWidth, MidpointRounding.
AwayFromZero
);
1158
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.
AwayFromZero
));
1230
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.Round(floatDesiredWidth, MidpointRounding.
AwayFromZero
));