188 references to Floor
mscorlib (4)
system\globalization\CalendricalCalculationsHelper.cs (3)
77
return new DateTime(Math.Min((long)(Math.
Floor
(numberOfDays) * GregorianCalendar.TicksPerDay), DateTime.MaxValue.Ticks)).Year;
116
double whole = Math.
Floor
(divisor / dividend);
397
long lowerBoundNewYearDay = (long) Math.
Floor
(approx) - 1;
system\globalization\Persiancalendar.cs (1)
228
int y = (int)(Math.
Floor
(((yearStart - PersianEpoch) / CalendricalCalculationsHelper.MeanTropicalYearInDays) + 0.5)) + 1;
PresentationBuildTasks (1)
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (1)
451
scaledInteger = Math.
Floor
( scaledValue ) ;
PresentationCore (14)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (9)
783
line1XMin = Math.
Floor
(line1Start.X);
788
line1XMin = Math.
Floor
(line1End.X);
794
line2XMin = Math.
Floor
(line2Start.X);
799
line2XMin = Math.
Floor
(line2End.X);
805
line1YMin = Math.
Floor
(line1Start.Y);
810
line1YMin = Math.
Floor
(line1End.Y);
816
line2YMin = Math.
Floor
(line2Start.Y);
821
line2YMin = Math.
Floor
(line2End.Y);
1069
double floor = Math.
Floor
(findex);
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (1)
451
scaledInteger = Math.
Floor
( scaledValue ) ;
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
777
int 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)
107
double start = Math.
Floor
(bounceAtT);
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
428
int 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 /
2286
int rows = (int)Math.
Floor
((double)(_pageCache.PageCount / columns));
src\Framework\System\Windows\Controls\Grid.cs (5)
1842
double power = Math.
Floor
(Math.Log(Double.MaxValue / maxStar / starCount, 2.0));
2424
double power = Math.
Floor
(Math.Log(Double.MaxValue / maxStar / starCount, 2.0));
2855
double minPower = Math.
Floor
(Math.Log(minRatio, 2.0));
2856
double maxPower = Math.
Floor
(Math.Log(maxRatio, 2.0));
2857
double f = Math.Pow(2.0, Math.
Floor
((minPower + maxPower) / 2.0));
src\Framework\System\Windows\Controls\Primitives\Track.cs (2)
639
thumbMinLength = Math.
Floor
(buttonHeight * 0.5);
647
thumbMinLength = Math.
Floor
(buttonWidth * 0.5);
src\Framework\System\Windows\Controls\TextBox.cs (2)
352
return (int)Math.
Floor
((this.VerticalOffset / lineHeight) + epsilon);
376
return (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);
4986
cacheBeforeSize = Math.Max(cacheBeforeSize - Math.
Floor
(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0);
5032
cacheAfterSize = Math.Max(cacheAfterSize - Math.
Floor
(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0);
5085
cacheBeforeSize = Math.Max(cacheBeforeSize - Math.
Floor
(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0);
5131
cacheAfterSize = Math.Max(cacheAfterSize - Math.
Floor
(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0);
5459
firstItemInViewportIndex = (int)Math.
Floor
(spanBeforeViewport / childSize);
7144
logicalSizeBeforeViewport = Math.
Floor
(childLogicalSize.Width * pixelSizeBeforeViewport / childPixelSize.Width);
7145
logicalSizeAfterViewport = Math.
Floor
(childLogicalSize.Width * pixelSizeAfterViewport / childPixelSize.Width);
7236
logicalSizeBeforeViewport = Math.
Floor
(childLogicalSize.Height * pixelSizeBeforeViewport / childPixelSize.Height);
7237
logicalSizeAfterViewport = Math.
Floor
(childLogicalSize.Height * pixelSizeAfterViewport / childPixelSize.Height);
9847
double proposedViewportSize = Math.
Floor
(viewport.Width / approxSizeOfLogicalUnit);
9940
if (!LayoutDoubleUtil.AreClose(Math.
Floor
(computedViewportOffset.X)/extentSize.Width, Math.
Floor
(_scrollData._offset.X)/_scrollData._extent.Width))
9943
viewportOffset.X = Math.
Floor
((extentSize.Width * Math.
Floor
(_scrollData._offset.X)) / _scrollData._extent.Width);
10064
double proposedViewportSize = Math.
Floor
(viewport.Height / approxSizeOfLogicalUnit);
10157
if (!LayoutDoubleUtil.AreClose(Math.
Floor
(computedViewportOffset.Y)/extentSize.Height, Math.
Floor
(_scrollData._offset.Y)/_scrollData._extent.Height))
10160
viewportOffset.Y = Math.
Floor
((extentSize.Height * Math.
Floor
(_scrollData._offset.Y)) / _scrollData._extent.Height);
10529
double proposedViewportSize = Math.
Floor
(viewport.Width / approxSizeOfLogicalUnit);
10611
if (!LayoutDoubleUtil.AreClose(Math.
Floor
(computedViewportOffset.X)/extentSize.Width, Math.
Floor
(_scrollData._offset.X)/_scrollData._extent.Width))
10614
viewportOffset.X = Math.
Floor
((extentSize.Width * Math.
Floor
(_scrollData._offset.X)) / _scrollData._extent.Width);
10660
double proposedViewportSize = Math.
Floor
(viewport.Height / approxSizeOfLogicalUnit);
10742
if (!LayoutDoubleUtil.AreClose(Math.
Floor
(computedViewportOffset.Y)/extentSize.Height, Math.
Floor
(_scrollData._offset.Y)/_scrollData._extent.Height))
10745
viewportOffset.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)
332
float hue = (float)((hlsColor.Hue - Math.
Floor
(hlsColor.Hue)) * 6);
System (2)
net\System\Net\mail\SmtpDateTime.cs (1)
442
uint hours = (uint)Math.Abs(Math.
Floor
(span.TotalHours));
security\system\security\cryptography\x509\x509chain.cs (1)
383
ChainPara.dwUrlRetrievalTimeout = (uint) Math.
Floor
(timeout.TotalMilliseconds);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1703
if (valueAsDouble == Math.
Floor
(valueAsDouble))
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1703
if (valueAsDouble == Math.
Floor
(valueAsDouble))
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (6)
689
double dInt = Math.
Floor
(dVal);
695
dVal = Math.
Floor
(dInt / DUINT_BASE);
700
dVal = Math.
Floor
(dInt / DUINT_BASE);
706
dVal = Math.
Floor
(dInt / DUINT_BASE);
712
dVal = Math.
Floor
(dInt / DUINT_BASE);
766
dFrac -= Math.
Floor
(dFrac);
System.Data.SqlXml (4)
System\Xml\Xsl\XPathConvert.cs (3)
643
if (wExp2 >= 1023 && wExp2 <= 1075 && dbl == Math.
Floor
(dbl)) {
855
Debug.Assert(dblInt == Math.
Floor
(dblInt) && 1 <= dblInt && dblInt <= 9007199254740991.0d);
878
Debug.Assert(dblInt == Math.
Floor
(dblInt) && 0 <= dblInt && dblInt < C10toN[iT]);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
114
if (Math.
Floor
(val) == val) {
System.ServiceModel (3)
System\ServiceModel\Dispatcher\FlowThrottle.cs (1)
42
this.warningRestoreLimit = (int)Math.
Floor
(0.7 * (double)capacity);
System\ServiceModel\Dispatcher\QueryFunctions.cs (1)
954
context.SetValue(context, arg.basePtr, Math.
Floor
(context.PeekDouble(arg.basePtr)));
System\ServiceModel\Dispatcher\QueryModel.cs (1)
918
return (-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)
388
this.warningRestoreLimit = (int)Math.
Floor
(0.7 * (double)maxPendingMessagesPerChannel);
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
1396
this.warningRestoreLimit = (int)Math.
Floor
(0.7 * (double)maxCount);
System.Web.DataVisualization (44)
Common\ChartTypes\BoxPlotChart.cs (1)
1797
double 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
(
599
numberOfBricks = (int)Math.
Floor
(
616
numberOfBricks = (int)Math.
Floor
(
622
numberOfBricks = (int)Math.
Floor
(
629
numberOfBricks = (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)
823
int numDigits = (int)Math.
Floor
(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize));
826
maxDigits = (int)Math.
Floor
(Math.Log(Int64.MaxValue, baseSize));
829
maxDigits = (int)Math.
Floor
(Math.Log((double)decimal.MaxValue, baseSize));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2825
numerator = (int)Math.
Floor
(multiplier);
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1782
splitterDistance = Math.Max((int)(Math.
Floor
(this.Width / ratioWidth)), Panel1MinSize);
1835
splitterDistance = Math.Max((int)(Math.
Floor
(this.Height / ratioHeight )), Panel1MinSize);
System.Windows.Forms.DataVisualization (44)
Common\ChartTypes\BoxPlotChart.cs (1)
1797
double 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
(
599
numberOfBricks = (int)Math.
Floor
(
616
numberOfBricks = (int)Math.
Floor
(
622
numberOfBricks = (int)Math.
Floor
(
629
numberOfBricks = (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)
195
if (Math.
Floor
(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1)
197
if (Math.
Floor
(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1)
199
if (Math.
Floor
(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1)
201
if (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)
751
this.scaling = (float)(Math.
Floor
((double)this.scaling * 1000.0d) / 1000.0d);
AuthoringOM\Design\WorkflowPrinting.cs (1)
342
this.scaling = (float)(Math.
Floor
((double)this.scaling * 1000.0d) / 1000.0d);
System.Xml (1)
System\Xml\XPath\Internal\NumberFunctions.cs (1)
90
return Math.
Floor
((double) arg.Evaluate(nodeIterator));