135 references to Floor
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (1)
104return Math.Floor((double)_arg.Evaluate(nodeIterator));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
432message.MaxAge = Convert.ToInt64(Math.Floor((maxAge.Value).TotalSeconds))
Microsoft.AspNetCore.Components.Web (1)
Virtualization\Virtualize.cs (1)
363itemsInSpacer = Math.Max(0, (int)Math.Floor(spacerSize / _itemSize) - OverscanCount);
Microsoft.AspNetCore.HttpsPolicy (1)
HstsMiddleware.cs (1)
40var maxAge = Convert.ToInt64(Math.Floor(hstsOptions.MaxAge.TotalSeconds))
Microsoft.Build (1)
BackEnd\Components\Caching\ConfigCache.cs (1)
283remainingToRelease = Convert.ToInt32(Math.Max(1, Math.Floor(_configurations.Count * 0.1)));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
84var lineHeight = Math.Floor(format.Typeface.FontFamily.LineSpacing * block.FontSize);
StringIndentation\StringIndentationAdornmentManager.VisibleBlock.cs (1)
61var x = Math.Floor(bounds.Right - (anchorPointLine.VirtualSpaceWidth / 2));
Microsoft.Maui (1)
VisualDiagnostics\AdornerModel.cs (1)
111 double floorPixels = (double)Math.Floor(pixels);
Microsoft.Maui.Graphics (2)
Color.cs (2)
262 var range = (int)(Math.Floor(h * 6)) % 6; 263 var f = h * 6 - Math.Floor(h * 6);
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
103 var maxLines = Math.Floor(height / _lineHeight);
Microsoft.ML.AutoML (1)
ColumnInference\TextFileSample.cs (1)
132int maxChunkCount = (int)Math.Floor((double)(fileSize - firstChunk.Length) / chunkSize);
Microsoft.ML.Core (4)
Utilities\MathUtils.cs (1)
312int toAdd = (int)Math.Floor(7 - x);
Utilities\Stats.cs (3)
340return (int)Math.Floor((a2 / (0.5 - Math.Abs(u)) + b) * u + c); 357double kd = Math.Floor((a2 / us + b) * u + c); 365m = (int)Math.Floor((n + 1) * p);
Microsoft.ML.FastTree (2)
SumupPerformanceCommand.cs (2)
138int numZeros = (int)Math.Min(Math.Floor(Math.Log(r) / denom), remaining); 207yield return Math.Floor(Math.Log(r) / denom);
Microsoft.ML.SearchSpace (2)
Option\ChoiceOption.cs (1)
85var idx = Convert.ToInt32(Math.Floor(value));
Option\UniformNumericOption.cs (1)
180var intValue = Convert.ToInt32(Math.Floor(param.AsType<double>()));
Microsoft.ML.StandardTrainers (1)
Optimizer\LearningRateScheduler.cs (1)
195decayPower = Staircase ? (float)Math.Floor(decayPower) : decayPower;
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
681double integralDigitCount = Math.Floor(Math.Log10(absValue) + 1);
Microsoft.ML.TimeSeries (1)
SrCnnEntireAnomalyDetector.cs (1)
1115if (Math.Floor(sensitivity) == sensitivity)
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
268FunctionProviderUtils.Fn<R8, R8>(Math.Floor)); 691return (R4)Math.Floor(a);
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (1)
431scaledInteger = Math.Floor( scaledValue ) ;
PresentationCore (14)
MS\Internal\Ink\StrokeNode.cs (9)
776line1XMin = Math.Floor(line1Start.X); 781line1XMin = Math.Floor(line1End.X); 787line2XMin = Math.Floor(line2Start.X); 792line2XMin = Math.Floor(line2End.X); 798line1YMin = Math.Floor(line1Start.Y); 803line1YMin = Math.Floor(line1End.Y); 809line2YMin = Math.Floor(line2Start.Y); 814line2YMin = Math.Floor(line2End.Y); 1061double floor = Math.Floor(findex);
MS\Internal\Media\XamlSerializationHelper.cs (1)
431scaledInteger = Math.Floor( scaledValue ) ;
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
724int value = (int)Math.Floor(i * ToIdeal);
System\Windows\Ink\Stroke.cs (1)
856? 0 : (int)Math.Floor(beginFIndex);
System\Windows\Media\Animation\BounceEase.cs (1)
106double start = Math.Floor(bounceAtT);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
331int percentComplete = (int)Math.Floor(100.0 * (double)entry.outputStream.Length / (double)entry.contentLength);
PresentationFramework (59)
MS\Internal\Documents\DocumentGrid.cs (2)
2222(int)Math.Floor(ViewportWidth / 2239int rows = (int)Math.Floor((double)(_pageCache.PageCount / columns));
System\Windows\Controls\Grid.cs (5)
1762double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2341double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2781double minPower = Math.Floor(Math.Log(minRatio, 2.0)); 2782double maxPower = Math.Floor(Math.Log(maxRatio, 2.0)); 2783double f = Math.Pow(2.0, Math.Floor((minPower + maxPower) / 2.0));
System\Windows\Controls\Primitives\Track.cs (2)
620thumbMinLength = Math.Floor(buttonHeight * 0.5); 628thumbMinLength = Math.Floor(buttonWidth * 0.5);
System\Windows\Controls\TextBox.cs (2)
328return (int)Math.Floor((this.VerticalOffset / lineHeight) + epsilon); 352return (int)Math.Floor((this.VerticalOffset + this.ViewportHeight - 1) / GetLineHeight());
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);
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
196(long)Math.Floor(1.0d * _instanceInfo.CumulativeCallTime100Ns[_action] / _instanceInfo.NumCallsMeasured[_action]); 217CallTimeForCOMCallMs = (long)Math.Floor(ticks * 1.0d / 10000), 218RunningAverageCallTimeForCOMCallsMs = (long)Math.Floor(runningAverage * 1.0d / 10000)
System\Windows\Shell\WindowChromeWorker.cs (4)
877(int)Math.Floor(region.Left), 878(int)Math.Floor(region.Top), 885(int)Math.Floor(region.Left), 886(int)Math.Floor(region.Top),
PresentationFramework.Classic (1)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
324float hue = (float)((hlsColor.Hue - Math.Floor(hlsColor.Hue)) * 6);
PresentationUI (1)
TenFeetInstallationProgress.xaml.cs (1)
123double percentDone = Math.Floor((double)bytesDownloaded / (double)bytesTotal * 100.0);
ReachFramework (4)
AlphaFlattener\BrushProxy.cs (2)
4044double left = Math.Floor(_bounds.Left / _bandDelta); 4271double left = Math.Floor(mint * _bandSteps);
AlphaFlattener\ImageProxy.cs (2)
481int x0 = (int)Math.Max(Math.Floor(bounds.Left), 0); 482int y0 = (int)Math.Max(Math.Floor(bounds.Top), 0);
System.Data.Common (6)
System\Data\SQLTypes\SQLDecimal.cs (6)
680double dInt = Math.Floor(dVal); 687dVal = Math.Floor(dInt / s_DUINT_BASE); 693dVal = Math.Floor(dInt / s_DUINT_BASE); 700dVal = Math.Floor(dInt / s_DUINT_BASE); 707dVal = Math.Floor(dInt / s_DUINT_BASE); 766dFrac -= Math.Floor(dFrac);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
682public static double Floor(double x) => Math.Floor(x);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (3)
66return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * TimeSpan.TicksPerDay), DateTime.MaxValue.Ticks)).Year; 105double whole = Math.Floor(divisor / dividend); 376long lowerBoundNewYearDay = (long)Math.Floor(approx) - 1;
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (2)
154int y = (int)(Math.Floor(((yearStart - s_persianEpoch) / CalendricalCalculationsHelper.MeanTropicalYearInDays) + 0.5)) + 1; 204year = (int)(Math.Floor(((yearStart - s_persianEpoch) / CalendricalCalculationsHelper.MeanTropicalYearInDays) + 0.5)) + 1;
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1371return Floor(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
578return (T)(object)Math.Floor((double)(object)value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
1624/// <seealso cref="Math.Floor(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
1715/// <seealso cref="Math.Floor(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
1764/// <seealso cref="Math.Floor(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
1500/// <seealso cref="Math.Floor(double)" />
System.Private.Xml (5)
System\Xml\XPath\Internal\NumberFunctions.cs (1)
99return Math.Floor((double)_arg.Evaluate(nodeIterator));
System\Xml\Xsl\XPathConvert.cs (3)
745if (wExp2 >= 1023 && wExp2 <= 1075 && dbl == Math.Floor(dbl)) 992Debug.Assert(dblInt == Math.Floor(dblInt) && 1 <= dblInt && dblInt <= 9007199254740991.0d); 1020Debug.Assert(dblInt == Math.Floor(dblInt) && 0 <= dblInt && dblInt < C10toN[iT]);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
122if (Math.Floor(val) == val)
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1618significand /= Math.Pow(10, Math.Floor(log10));
System.Windows.Forms (6)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2680numerator = (int)Math.Floor(multiplier);
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (3)
774int numDigits = (int)Math.Floor(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize)); 778maxDigits = (int)Math.Floor(Math.Log(long.MaxValue, baseSize)); 782maxDigits = (int)Math.Floor(Math.Log((double)decimal.MaxValue, baseSize));
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1635_splitterDistance = Math.Max((int)(Math.Floor(Width / _ratioWidth)), Panel1MinSize); 1698_splitterDistance = Math.Max((int)(Math.Floor(Height / _ratioHeight)), Panel1MinSize);