135 references to Floor
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.Build (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (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)
524_scrollData._offset.X = Math.Floor(_scrollData._offset.X);
525_scrollData._computedOffset.X = Math.Floor(_scrollData._computedOffset.X);
652_scrollData._offset.Y = Math.Floor(_scrollData._offset.Y);
653_scrollData._computedOffset.Y = Math.Floor(_scrollData._computedOffset.Y);
5075cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0);
5121cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0);
5174cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0);
5220cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0);
5548firstItemInViewportIndex = (int)Math.Floor(spanBeforeViewport / childSize);
7258logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Width * pixelSizeBeforeViewport / childPixelSize.Width);
7259logicalSizeAfterViewport = Math.Floor(childLogicalSize.Width * pixelSizeAfterViewport / childPixelSize.Width);
7350logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Height * pixelSizeBeforeViewport / childPixelSize.Height);
7351logicalSizeAfterViewport = Math.Floor(childLogicalSize.Height * pixelSizeAfterViewport / childPixelSize.Height);
9714Debug.Assert(DoubleUtil.AreClose(viewportSize.Width - Math.Floor(viewportSize.Width), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
9715Debug.Assert(DoubleUtil.AreClose(extentSize.Width - Math.Floor(extentSize.Width), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
9719Debug.Assert(DoubleUtil.AreClose(viewportSize.Height - Math.Floor(viewportSize.Height), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
9720Debug.Assert(DoubleUtil.AreClose(extentSize.Height - Math.Floor(extentSize.Height), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
9970double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
10063if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10066viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10187double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit);
10280if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
10283viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
10563Debug.Assert(DoubleUtil.AreClose(viewportSize.Width - Math.Floor(viewportSize.Width), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
10564Debug.Assert(DoubleUtil.AreClose(extentSize.Width - Math.Floor(extentSize.Width), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
10568Debug.Assert(DoubleUtil.AreClose(viewportSize.Height - Math.Floor(viewportSize.Height), 0.0), "The viewport size must not contain fractional values when in item scrolling mode.");
10569Debug.Assert(DoubleUtil.AreClose(extentSize.Height - Math.Floor(extentSize.Height), 0.0), "The extent size must not contain fractional values when in item scrolling mode.");
10652double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit);
10734if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width))
10737viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10783double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit);
10865if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height))
10868viewportOffset.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)