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