188 references to Floor
mscorlib (4)
system\globalization\CalendricalCalculationsHelper.cs (3)
77return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * GregorianCalendar.TicksPerDay), DateTime.MaxValue.Ticks)).Year; 116double whole = Math.Floor(divisor / dividend); 397long lowerBoundNewYearDay = (long) Math.Floor(approx) - 1;
system\globalization\Persiancalendar.cs (1)
228int y = (int)(Math.Floor(((yearStart - PersianEpoch) / CalendricalCalculationsHelper.MeanTropicalYearInDays) + 0.5)) + 1;
PresentationBuildTasks (1)
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (1)
451scaledInteger = Math.Floor( scaledValue ) ;
PresentationCore (14)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (9)
783line1XMin = Math.Floor(line1Start.X); 788line1XMin = Math.Floor(line1End.X); 794line2XMin = Math.Floor(line2Start.X); 799line2XMin = Math.Floor(line2End.X); 805line1YMin = Math.Floor(line1Start.Y); 810line1YMin = Math.Floor(line1End.Y); 816line2YMin = Math.Floor(line2Start.Y); 821line2YMin = Math.Floor(line2End.Y); 1069double floor = Math.Floor(findex);
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (1)
451scaledInteger = Math.Floor( scaledValue ) ;
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
777int value = (int)Math.Floor(i * ToIdeal);
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
888? 0 : (int)Math.Floor(beginFIndex);
Core\CSharp\System\Windows\Media\Animation\BounceEase.cs (1)
107double start = Math.Floor(bounceAtT);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
428int percentComplete = (int)Math.Floor(100.0 * (double)entry.outputStream.Length / (double)entry.contentLength);
PresentationFramework (48)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (2)
2269(int)Math.Floor( ViewportWidth / 2286int rows = (int)Math.Floor((double)(_pageCache.PageCount / columns));
src\Framework\System\Windows\Controls\Grid.cs (5)
1842double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2424double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2855double minPower = Math.Floor(Math.Log(minRatio, 2.0)); 2856double maxPower = Math.Floor(Math.Log(maxRatio, 2.0)); 2857double f = Math.Pow(2.0, Math.Floor((minPower + maxPower) / 2.0));
src\Framework\System\Windows\Controls\Primitives\Track.cs (2)
639thumbMinLength = Math.Floor(buttonHeight * 0.5); 647thumbMinLength = Math.Floor(buttonWidth * 0.5);
src\Framework\System\Windows\Controls\TextBox.cs (2)
352return (int)Math.Floor((this.VerticalOffset / lineHeight) + epsilon); 376return (int)Math.Floor((this.VerticalOffset + this.ViewportHeight - 1) / GetLineHeight());
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (33)
528_scrollData._offset.X = Math.Floor(_scrollData._offset.X); 529_scrollData._computedOffset.X = Math.Floor(_scrollData._computedOffset.X); 654_scrollData._offset.Y = Math.Floor(_scrollData._offset.Y); 655_scrollData._computedOffset.Y = Math.Floor(_scrollData._computedOffset.Y); 4986cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0); 5032cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0); 5085cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0); 5131cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0); 5459firstItemInViewportIndex = (int)Math.Floor(spanBeforeViewport / childSize); 7144logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Width * pixelSizeBeforeViewport / childPixelSize.Width); 7145logicalSizeAfterViewport = Math.Floor(childLogicalSize.Width * pixelSizeAfterViewport / childPixelSize.Width); 7236logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Height * pixelSizeBeforeViewport / childPixelSize.Height); 7237logicalSizeAfterViewport = Math.Floor(childLogicalSize.Height * pixelSizeAfterViewport / childPixelSize.Height); 9847double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit); 9940if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width)) 9943viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width); 10064double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit); 10157if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height)) 10160viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height); 10529double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit); 10611if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width)) 10614viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width); 10660double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit); 10742if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height)) 10745viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (4)
1292(int)Math.Floor(region.Left), 1293(int)Math.Floor(region.Top), 1300(int)Math.Floor(region.Left), 1301(int)Math.Floor(region.Top),
PresentationFramework.Classic (1)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
332float hue = (float)((hlsColor.Hue - Math.Floor(hlsColor.Hue)) * 6);
System (2)
net\System\Net\mail\SmtpDateTime.cs (1)
442uint hours = (uint)Math.Abs(Math.Floor(span.TotalHours));
security\system\security\cryptography\x509\x509chain.cs (1)
383ChainPara.dwUrlRetrievalTimeout = (uint) Math.Floor(timeout.TotalMilliseconds);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1703if (valueAsDouble == Math.Floor(valueAsDouble))
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1703if (valueAsDouble == Math.Floor(valueAsDouble))
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (6)
689double dInt = Math.Floor(dVal); 695dVal = Math.Floor (dInt / DUINT_BASE); 700dVal = Math.Floor (dInt / DUINT_BASE); 706dVal = Math.Floor (dInt / DUINT_BASE); 712dVal = Math.Floor (dInt / DUINT_BASE); 766dFrac -= Math.Floor (dFrac);
System.Data.SqlXml (4)
System\Xml\Xsl\XPathConvert.cs (3)
643if (wExp2 >= 1023 && wExp2 <= 1075 && dbl == Math.Floor(dbl)) { 855Debug.Assert(dblInt == Math.Floor(dblInt) && 1 <= dblInt && dblInt <= 9007199254740991.0d); 878Debug.Assert(dblInt == Math.Floor(dblInt) && 0 <= dblInt && dblInt < C10toN[iT]);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
114if (Math.Floor(val) == val) {
System.ServiceModel (3)
System\ServiceModel\Dispatcher\FlowThrottle.cs (1)
42this.warningRestoreLimit = (int)Math.Floor(0.7 * (double)capacity);
System\ServiceModel\Dispatcher\QueryFunctions.cs (1)
954context.SetValue(context, arg.basePtr, Math.Floor(context.PeekDouble(arg.basePtr)));
System\ServiceModel\Dispatcher\QueryModel.cs (1)
918return (-0.5 <= val && val <= 0.0) ? Math.Round(val) : Math.Floor(val + 0.5);
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (1)
388this.warningRestoreLimit = (int)Math.Floor(0.7 * (double)maxPendingMessagesPerChannel);
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
1396this.warningRestoreLimit = (int)Math.Floor(0.7 * (double)maxCount);
System.Web.DataVisualization (44)
Common\ChartTypes\BoxPlotChart.cs (1)
1797double percentPointIndexInteger = Math.Floor(percentPointIndex);
Common\ChartTypes\PieChart.cs (1)
2270 SpreadInterval( startOfIntervals, endOfIntervals, index, Math.Floor( overlapRange / 2.0 ) );
Common\ChartTypes\PointAndFigureChart.cs (6)
586 numberOfBricks = (int)Math.Floor( 592 numberOfBricks = (int)Math.Floor( 599numberOfBricks = (int)Math.Floor( 616 numberOfBricks = (int)Math.Floor( 622 numberOfBricks = (int)Math.Floor( 629numberOfBricks = (int)Math.Floor(
Common\ChartTypes\RenkoChart.cs (2)
466 numberOfBricks = (int)Math.Floor((dataPoint.YValues[yValueIndex] - prevHigh) / boxSize); 471 numberOfBricks = (int)Math.Floor((prevLow - dataPoint.YValues[yValueIndex]) / boxSize);
Common\ChartTypes\StackedBarChart.cs (2)
484 areaPosition.X = (float)Math.Floor(areaPosition.X); 486 areaPosition.Y = (float)Math.Floor(areaPosition.Y);
Common\ChartTypes\StackedColumnChart.cs (2)
490 areaPosition.X = (float)Math.Floor(areaPosition.X); 492 areaPosition.Y = (float)Math.Floor(areaPosition.Y);
Common\DataManager\DataPoint.cs (2)
2277 this._yValue[i] = Math.Floor(this._yValue[i]); 2281 this._yValue[i] = this._xValue - Math.Floor(this._yValue[i]);
Common\General\AxisScale.cs (6)
1274 max = (double)( ((decimal)Math.Floor( max / inter ) + 1m ) * (decimal)inter ); 1576 return Math.Floor( years / 5 ); 1978 minimum = Math.Floor( minimum ); 2117 axisInterval = Math.Floor( diff ); 2179 axisInterval = Math.Floor( axisInterval / this.interval3DCorrection ); 2217 (double)((Math.Floor(numberOfUnits / axisInterval / margin * 100)+2) * axisInterval * margin / 100),
Common\General\AxisScaleBreaks.cs (2)
682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 1011 int segmentIndex = (int)Math.Floor((dataPoint.YValues[yValueIndex] - minYValue) / segmentSize);
Common\General\Chart.cs (1)
2178 int areaColumns = (int)Math.Floor(Math.Sqrt(areaNumber));
Common\General\ChartElement.cs (4)
1322 date = date.AddMonths((int)Math.Floor(interval)); 1323 span = TimeSpan.FromDays(30.0 * ( interval - Math.Floor(interval) )); 1335 date = date.AddYears((int)Math.Floor(interval)); 1336 span = TimeSpan.FromDays(365.0 * ( interval - Math.Floor(interval) ));
Common\General\ChartGraphics.cs (6)
2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 2976 gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f); 2977 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f); 3000 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3005 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f);
Common\General\ChartGraphics3D.cs (6)
3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3253 gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f); 3254 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f); 3305 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3310 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f);
Common\General\GridTickMarks.cs (2)
576 return viewMinimum + Math.Floor( ( current - viewMinimum )); 1450 return viewMinimum + Math.Floor( ( current - viewMinimum ));
Common\General\Legend.cs (1)
2541 this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.Width / 2 - step * (float)Math.Floor(markerCount/2f),
System.Windows.Forms (6)
winforms\Managed\System\WinForms\NumericUpDown.cs (3)
823int numDigits = (int)Math.Floor(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize)); 826maxDigits = (int)Math.Floor(Math.Log(Int64.MaxValue, baseSize)); 829maxDigits = (int)Math.Floor(Math.Log((double)decimal.MaxValue, baseSize));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2825numerator = (int)Math.Floor(multiplier);
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1782splitterDistance = Math.Max((int)(Math.Floor(this.Width / ratioWidth)), Panel1MinSize); 1835splitterDistance = Math.Max((int)(Math.Floor(this.Height / ratioHeight )), Panel1MinSize);
System.Windows.Forms.DataVisualization (44)
Common\ChartTypes\BoxPlotChart.cs (1)
1797double percentPointIndexInteger = Math.Floor(percentPointIndex);
Common\ChartTypes\PieChart.cs (1)
2270 SpreadInterval( startOfIntervals, endOfIntervals, index, Math.Floor( overlapRange / 2.0 ) );
Common\ChartTypes\PointAndFigureChart.cs (6)
586 numberOfBricks = (int)Math.Floor( 592 numberOfBricks = (int)Math.Floor( 599numberOfBricks = (int)Math.Floor( 616 numberOfBricks = (int)Math.Floor( 622 numberOfBricks = (int)Math.Floor( 629numberOfBricks = (int)Math.Floor(
Common\ChartTypes\RenkoChart.cs (2)
466 numberOfBricks = (int)Math.Floor((dataPoint.YValues[yValueIndex] - prevHigh) / boxSize); 471 numberOfBricks = (int)Math.Floor((prevLow - dataPoint.YValues[yValueIndex]) / boxSize);
Common\ChartTypes\StackedBarChart.cs (2)
484 areaPosition.X = (float)Math.Floor(areaPosition.X); 486 areaPosition.Y = (float)Math.Floor(areaPosition.Y);
Common\ChartTypes\StackedColumnChart.cs (2)
490 areaPosition.X = (float)Math.Floor(areaPosition.X); 492 areaPosition.Y = (float)Math.Floor(areaPosition.Y);
Common\DataManager\DataPoint.cs (2)
2277 this._yValue[i] = Math.Floor(this._yValue[i]); 2281 this._yValue[i] = this._xValue - Math.Floor(this._yValue[i]);
Common\General\AxisScale.cs (6)
1274 max = (double)( ((decimal)Math.Floor( max / inter ) + 1m ) * (decimal)inter ); 1576 return Math.Floor( years / 5 ); 1978 minimum = Math.Floor( minimum ); 2117 axisInterval = Math.Floor( diff ); 2179 axisInterval = Math.Floor( axisInterval / this.interval3DCorrection ); 2217 (double)((Math.Floor(numberOfUnits / axisInterval / margin * 100)+2) * axisInterval * margin / 100),
Common\General\AxisScaleBreaks.cs (2)
682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 1011 int segmentIndex = (int)Math.Floor((dataPoint.YValues[yValueIndex] - minYValue) / segmentSize);
Common\General\Chart.cs (1)
2178 int areaColumns = (int)Math.Floor(Math.Sqrt(areaNumber));
Common\General\ChartElement.cs (4)
1322 date = date.AddMonths((int)Math.Floor(interval)); 1323 span = TimeSpan.FromDays(30.0 * ( interval - Math.Floor(interval) )); 1335 date = date.AddYears((int)Math.Floor(interval)); 1336 span = TimeSpan.FromDays(365.0 * ( interval - Math.Floor(interval) ));
Common\General\ChartGraphics.cs (6)
2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 2976 gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f); 2977 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f); 3000 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3005 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f);
Common\General\ChartGraphics3D.cs (6)
3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3253 gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f); 3254 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f); 3305 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3310 gradientRect.Width = (float)Math.Floor(gradientRect.Width / 3f);
Common\General\GridTickMarks.cs (2)
576 return viewMinimum + Math.Floor( ( current - viewMinimum )); 1450 return viewMinimum + Math.Floor( ( current - viewMinimum ));
Common\General\Legend.cs (1)
2541 this._legendItemsAreaPosition.X + this._legendItemsAreaPosition.Width / 2 - step * (float)Math.Floor(markerCount/2f),
System.Workflow.ComponentModel (6)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (4)
195if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1) 197if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1) 199if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1)
AuthoringOM\Design\WorkflowLayouts.cs (1)
751this.scaling = (float)(Math.Floor((double)this.scaling * 1000.0d) / 1000.0d);
AuthoringOM\Design\WorkflowPrinting.cs (1)
342this.scaling = (float)(Math.Floor((double)this.scaling * 1000.0d) / 1000.0d);
System.Xml (1)
System\Xml\XPath\Internal\NumberFunctions.cs (1)
90return Math.Floor((double) arg.Evaluate(nodeIterator));