14 references to Round
aspire (1)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
394return (int)Math.Round(durationNano / 1_000_000.0, 0, MidpointRounding.AwayFromZero);
Aspire.Dashboard (1)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
394return (int)Math.Round(durationNano / 1_000_000.0, 0, 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);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
694public static double Round(double x, int digits, MidpointRounding mode) => Math.Round(x, digits, mode);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1354return Round(value, digits, MidpointRounding.ToEven);
xunit.assert (8)
EqualityAsserts.cs (8)
372 var expectedRounded = Math.Round(expected, precision, rounding); 373 var actualRounded = Math.Round(actual, precision, rounding); 444 var expectedRounded = Math.Round(expected, precision, rounding); 445 var actualRounded = Math.Round(actual, precision, rounding); 853 var expectedRounded = Math.Round(expected, precision, rounding); 854 var actualRounded = Math.Round(actual, precision, rounding); 925 var expectedRounded = Math.Round(expected, precision, rounding); 926 var actualRounded = Math.Round(actual, precision, rounding);