136 references to Floor
Aspire.Dashboard (2)
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.Maui (1)
Microsoft.Maui.Graphics (2)
Microsoft.Maui.Graphics.Skia (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.Core (4)
Microsoft.ML.FastTree (2)
Microsoft.ML.SearchSpace (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Transforms (2)
PresentationBuildTasks (1)
PresentationCore (14)
PresentationFramework (59)
System\Windows\Controls\VirtualizingStackPanel.cs (41)
523_scrollData._offset.X = Math.Floor(_scrollData._offset.X);
524_scrollData._computedOffset.X = Math.Floor(_scrollData._computedOffset.X);
651_scrollData._offset.Y = Math.Floor(_scrollData._offset.Y);
652_scrollData._computedOffset.Y = Math.Floor(_scrollData._computedOffset.Y);
5071cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0);
5117cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0);
5170cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0);
5216cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0);
5544firstItemInViewportIndex = (int)Math.Floor(spanBeforeViewport / childSize);
7254logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Width * pixelSizeBeforeViewport / childPixelSize.Width);
7255logicalSizeAfterViewport = Math.Floor(childLogicalSize.Width * pixelSizeAfterViewport / childPixelSize.Width);
7346logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Height * pixelSizeBeforeViewport / childPixelSize.Height);
7347logicalSizeAfterViewport = Math.Floor(childLogicalSize.Height * pixelSizeAfterViewport / childPixelSize.Height);
9710Debug.Assert(DoubleUtil.AreClose(viewportSize.Width - Math.Floor(viewportSize.Width), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
9711Debug.Assert(DoubleUtil.AreClose(extentSize.Width - Math.Floor(extentSize.Width), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
9715Debug.Assert(DoubleUtil.AreClose(viewportSize.Height - Math.Floor(viewportSize.Height), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
9716Debug.Assert(DoubleUtil.AreClose(extentSize.Height - Math.Floor(extentSize.Height), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
9966double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
10059if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10062viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10183double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit);
10276if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
10279viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
10559Debug.Assert(DoubleUtil.AreClose(viewportSize.Width - Math.Floor(viewportSize.Width), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
10560Debug.Assert(DoubleUtil.AreClose(extentSize.Width - Math.Floor(extentSize.Width), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
10564Debug.Assert(DoubleUtil.AreClose(viewportSize.Height - Math.Floor(viewportSize.Height), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
10565Debug.Assert(DoubleUtil.AreClose(extentSize.Height - Math.Floor(extentSize.Height), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
10648double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
10730if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10733viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10779double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit);
10861if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
10864viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
PresentationFramework.Classic (1)
PresentationUI (1)
ReachFramework (4)
System.Data.Common (6)
System.Private.CoreLib (12)
System.Private.Xml (5)
System.Runtime.Numerics (1)
System.Windows.Forms (6)