152 references to Ceiling
CodeGenerator (3)
HttpUtilities\HttpUtilities.cs (1)
34var maskLength = (byte)Math.Ceiling(Math.Log(httpMethods.Length, 2));
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (2)
192var hexMaskSize = Math.Ceiling(maskSizeInBIts / 4.0); 211var hexMaskSize = (byte)Math.Ceiling(maskSizeInBIts / 4);
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (1)
109return Math.Ceiling((double)_arg.Evaluate(nodeIterator));
Microsoft.AspNetCore.Authentication.Cookies (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
191var cookieChunkCount = (int)Math.Ceiling(value.Length * 1.0 / dataSizePerCookie);
Microsoft.AspNetCore.Components.Web (1)
Virtualization\Virtualize.cs (1)
364visibleItemCapacity = (int)Math.Ceiling(containerSize / _itemSize) + 2 * OverscanCount;
Microsoft.AspNetCore.CookiePolicy.Test (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
191var cookieChunkCount = (int)Math.Ceiling(value.Length * 1.0 / dataSizePerCookie);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
191var cookieChunkCount = (int)Math.Ceiling(value.Length * 1.0 / dataSizePerCookie);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewExecutorTest.cs (1)
345var expectedWriteCallCount = Math.Ceiling((double)writeLength / TestHttpResponseStreamWriterFactory.DefaultBufferSize);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1095var delay = (int)Math.Ceiling(timeout.TotalMilliseconds / MaxWaitLoop);
Microsoft.Build (2)
BackEnd\Components\Scheduler\Scheduler.cs (1)
1303configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count));
StringUtils.cs (1)
24int randomBytesNeeded = (int)Math.Ceiling(length * bytesNumNeededForSingleStringChar);
Microsoft.Build.Tasks.Core (1)
StringUtils.cs (1)
24int randomBytesNeeded = (int)Math.Ceiling(length * bytesNumNeededForSingleStringChar);
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Utilities\BloomFilter.cs (1)
84return unchecked((int)Math.Ceiling(numerator / denominator));
Microsoft.Maui (1)
VisualDiagnostics\AdornerModel.cs (1)
113 floorPixels : (double)Math.Ceiling(pixels);
Microsoft.Maui.Graphics (1)
MathF.cs (1)
26 public static float Ceiling(float a) => (float)Math.Ceiling(a);
Microsoft.ML.AutoML (2)
ColumnInference\TextFileSample.cs (1)
131int chunkCount = (int)Math.Ceiling((BufferSizeMb * OversamplingRate - FirstChunkSizeMb) * (1 << 20) / usefulChunkSize);
Sweepers\SmacSweeper.cs (1)
157ParameterSet[] eiChallengers = GreedyPlusRandomSearch(bestKParamSets, forest, (int)Math.Ceiling(numOfCandidates / 2.0F), previousRuns);
Microsoft.ML.Core (1)
Utilities\Stats.cs (1)
32int max = (int)Math.Ceiling(Math.Sqrt(rangeSize));
Microsoft.ML.Data (4)
DataLoadSave\Binary\BinaryLoader.cs (1)
1171var poolSize = Math.Ceiling(_shuffleBlocks * _rowsPerBlock);
DataView\AppendRowsDataView.cs (1)
445newEnd = _batchEnd + (int)Math.Ceiling((double)_rowsLeft[i] * BatchSize / _totalLeft);
Evaluators\AnomalyDetectionEvaluator.cs (2)
331var maxNumFalsePos = (int)Math.Ceiling(max); 407_maxNumFalsePos = (int)Math.Ceiling(max);
Microsoft.ML.FastTree (14)
GamClassification.cs (1)
122var actions = new Action[(int)Math.Ceiling(1.0 * targets.Length / innerLoopSize)];
Training\Applications\ObjectiveFunction.cs (1)
63var actions = new Action[(int)Math.Ceiling((double)Dataset.NumQueries / QueryThreadChunkSize)];
Training\DcgCalculator.cs (2)
371var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)]; 510var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)];
Training\DocumentPartitioning.cs (1)
71var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)];
Training\ScoreTracker.cs (1)
175var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / innerLoopSize)];
Training\Test.cs (3)
541var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / chunkSize)]; 619var actions = new Action[(int)Math.Ceiling(1.0 * binaryLabels.Length / chunkSize)]; 659var actions = new Action[(int)Math.Ceiling(1.0 * Dataset.NumDocs / chunkSize)];
Training\WinLossCalculator.cs (1)
53var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumQueries / chunkSize)];
TreeEnsemble\InternalRegressionTree.cs (3)
1382var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)]; 1407var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)]; 1430var actions = new Action[(int)Math.Ceiling(1.0 * docIndices.Length / innerLoopSize)];
TreeEnsemble\InternalTreeEnsemble.cs (1)
296var actions = new Action[(int)Math.Ceiling(1.0 * dataset.NumDocs / innerLoopSize)];
Microsoft.ML.StandardTrainers (1)
Optimizer\LearningRateScheduler.cs (1)
253float calculatedStep = (float)decaySteps * (float)Math.Ceiling((double)globalStep / (double)decaySteps);
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
168ParameterSet[] eiChallengers = GreedyPlusRandomSearch(bestKParamSets, forest, (int)Math.Ceiling(numOfCandidates / 2.0F), previousRuns);
Microsoft.ML.TorchSharp (2)
AutoFormerV2\BasicLayer.cs (2)
66int hp = (int)Math.Ceiling((double)h / this.windowSize) * this.windowSize; 67int wp = (int)Math.Ceiling((double)w / this.windowSize) * this.windowSize;
Microsoft.ML.Transforms (2)
Expression\BuiltinFunctions.cs (2)
273FunctionProviderUtils.Fn<R8, R8>(Math.Ceiling)); 697return (R4)Math.Ceiling(a);
PresentationCore (18)
MS\Internal\Ink\StrokeNode.cs (8)
777line1XMax = Math.Ceiling(line1End.X); 782line1XMax = Math.Ceiling(line1Start.X); 788line2XMax = Math.Ceiling(line2End.X); 793line2XMax = Math.Ceiling(line2Start.X); 799line1YMax = Math.Ceiling(line1End.Y); 804line1YMax = Math.Ceiling(line1Start.Y); 810line2YMax = Math.Ceiling(line2End.Y); 815line2YMax = Math.Ceiling(line2Start.Y);
System\Windows\Ink\Stroke.cs (4)
748Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 804Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 860? (sourceStylusPoints.Count - 1) : (int)Math.Ceiling(endFIndex); 914double ceiling = Math.Ceiling(endFIndex);
System\Windows\InterOp\HwndSource.cs (2)
911size = new Point(Math.Ceiling(size.X), Math.Ceiling(size.Y));
System\Windows\InterOp\HwndTarget.cs (4)
777(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.right - _hwndClientRectInScreenCoords.left))), 778(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.bottom - _hwndClientRectInScreenCoords.top)))); 1583(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.right - _hwndClientRectInScreenCoords.left))), 1584(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.bottom - _hwndClientRectInScreenCoords.top))));
PresentationFramework (14)
MS\Internal\AppModel\IconHelper.cs (1)
342return (((int)Math.Ceiling(original) + (nBitsCount - 1)) / nBitsCount) * nBitsCount;
MS\Internal\Documents\TextBoxView.cs (1)
2163lastLineIndex = (int)Math.Ceiling((viewport.Y + viewport.Height) / _lineHeight) - 1;
System\Windows\Controls\VirtualizingStackPanel.cs (2)
2321int calcItemsInViewportCount = (int)Math.Ceiling(factor * _itemsInExtendedViewportCount); 4955int calcItemsInExtendedViewportCount = (int)Math.Ceiling(factor * _actualItemsInExtendedViewportCount);
System\Windows\Shell\WindowChromeWorker.cs (10)
879(int)Math.Ceiling(region.Right), 880(int)Math.Ceiling(region.Bottom)); 887(int)Math.Ceiling(region.Right) + 1, 888(int)Math.Ceiling(region.Bottom) + 1, 889(int)Math.Ceiling(radius), 890(int)Math.Ceiling(radius)); 1000cxLeftWidth = (int)Math.Ceiling(deviceGlassThickness.Left), 1001cxRightWidth = (int)Math.Ceiling(deviceGlassThickness.Right), 1002cyTopHeight = (int)Math.Ceiling(deviceGlassThickness.Top), 1003cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom),
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
84int blocks = (int)Math.Ceiling(width / blockTotal);
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
84int blocks = (int)Math.Ceiling(width / blockTotal);
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
84int blocks = (int)Math.Ceiling(width / blockTotal);
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
84int blocks = (int)Math.Ceiling(width / blockTotal);
ReachFramework (8)
AlphaFlattener\BrushProxy.cs (4)
1943int stopCount = (int)Math.Ceiling(-6.297427 + 4.591693 * Math.Log(stopDistance)); 3900return (int)Math.Ceiling(Math.Max(5, step)); // At least five. Radials look bad with less steps. 4043double right = Math.Ceiling(_bounds.Right / _bandDelta); 4270double right = Math.Ceiling(maxt * _bandSteps);
AlphaFlattener\ImageProxy.cs (2)
483int x1 = (int)Math.Ceiling(bounds.Right); 484int y1 = (int)Math.Ceiling(bounds.Bottom);
AlphaFlattener\Primitive.cs (2)
766columnCount = (int)Math.Ceiling((bounds.Right - startTile.Left) / startTile.Width); 775rowCount = (int)Math.Ceiling((bounds.Bottom - startTile.Top) / startTile.Height);
System.ComponentModel.TypeConverter (3)
System\Timers\Timer.cs (3)
56double roundedInterval = Math.Ceiling(interval); 139int i = (int)Math.Ceiling(_interval); 156int i = (int)Math.Ceiling(_interval);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregationManager.cs (1)
212double alignUpSecsSinceStart = Math.Ceiling(secsSinceStart / collectionIntervalSecs) *
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
77int mantissaBits = (int)Math.Ceiling(Math.Log(1 / _config.MaxRelativeError, 2)) - 1;
System.Drawing.Common.Tests (13)
mono\System.Drawing\BitmapTests.cs (6)
223Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 224Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 225Assert.Equal(Math.Ceiling((float)c.R * c.A / 255), data[2]); 227Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 228Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 229Assert.Equal(Math.Ceiling((float)d.R * d.A / 255), data[6]);
System\Drawing\BitmapTests.cs (6)
1355Assert.Equal(Math.Ceiling((float)c.B * c.A / 255), data[0]); 1356Assert.Equal(Math.Ceiling((float)c.G * c.A / 255), data[1]); 1357Assert.Equal(Math.Ceiling((float)c.R * c.A / 255), data[2]); 1359Assert.Equal(Math.Ceiling((float)d.B * d.A / 255), data[4]); 1360Assert.Equal(Math.Ceiling((float)d.G * d.A / 255), data[5]); 1361Assert.Equal(Math.Ceiling((float)d.R * d.A / 255), data[6]);
System\Drawing\FontTests.cs (1)
494Assert.Equal((int)Math.Ceiling(height), font.Height);
System.Drawing.Primitives (8)
System\Drawing\Point.cs (2)
123public static Point Ceiling(PointF value) => new Point(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y)));
System\Drawing\Rectangle.cs (4)
182(int)Math.Ceiling(value.X), 183(int)Math.Ceiling(value.Y), 184(int)Math.Ceiling(value.Width), 185(int)Math.Ceiling(value.Height));
System\Drawing\Size.cs (2)
157new Size(unchecked((int)Math.Ceiling(value.Width)), unchecked((int)Math.Ceiling(value.Height)));
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (1)
265_nextPollingTimeStamp += TimeSpan.FromMilliseconds(_pollingIntervalInMilliseconds * Math.Ceiling(delta.TotalMilliseconds / _pollingIntervalInMilliseconds));
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
656public static double Ceiling(double x) => Math.Ceiling(x);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1374return Ceiling(value);
src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
177int digitExponent = (int)(Math.Ceiling(((int)(mantissaHighBitIdx) + exponent) * Log10V2 - 0.69));
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (1)
823double k = Math.Ceiling((minExponent + DiyFp.SignificandSize - 1) * D1Log210);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (1)
266return (T)(object)Math.Ceiling((double)(object)value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
322/// <seealso cref="Math.Ceiling(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
360/// <seealso cref="Math.Ceiling(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
360/// <seealso cref="Math.Ceiling(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
328/// <seealso cref="Math.Ceiling(double)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (2)
153ulong segmentSize = (ulong)(Math.Ceiling((double)size / s_GCSegmentSize) * s_GCSegmentSize); 157ulong requestedSizeRounded = (ulong)(Math.Ceiling((double)sizeInMegabytes / MemoryCheckGranularity) * MemoryCheckGranularity);
System.Private.Xml (1)
System\Xml\XPath\Internal\NumberFunctions.cs (1)
105return Math.Ceiling((double)_arg.Evaluate(nodeIterator));
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheStore.cs (1)
383toTrim = (int)Math.Ceiling(((long)count * (long)percent) / 100D);
System.Windows.Forms (12)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2282width = (int)(Math.Ceiling(graphics.MeasureString(GetItemText(item), Font).Width));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
540? (int)Math.Ceiling((double)CalendarsAccessibleObjects.Count / ColumnCount)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
302int detailsWidth = (int)Math.Ceiling(sizef.Width);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
4208int maxRows = (int)Math.Ceiling(((double)GetOurSize().Height) / (1 + RowHeight)); 4423_visibleRows = (int)Math.Ceiling(((double)size.Height) / (1 + RowHeight));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2677numerator = (int)Math.Ceiling(multiplier);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
259return fontHeight != 0 ? (int)Math.Ceiling(((double)rect.Height) / fontHeight) : 0;
System\Windows\Forms\Layout\TableLayout.cs (1)
289int estimatedCols = Math.Max((int)Math.Ceiling((float)minSpace / numRows), minColumn);
System\Windows\Forms\Rendering\TextExtensions.cs (4)
119leftMargin = (int)Math.Ceiling(overhangPadding); 120rightMargin = (int)Math.Ceiling(overhangPadding * (1 + ItalicPaddingFactor)); 126leftMargin = (int)Math.Ceiling(2 * overhangPadding); 127rightMargin = (int)Math.Ceiling(overhangPadding * (2 + ItalicPaddingFactor));
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
217w = Math.Max(w, (int)Math.Ceiling(sizeW.Width)); 227return (int)Math.Ceiling(size.Width) + w + pic + SystemInformation.BorderSize.Width * 4; 569w = Math.Max(w, (int)Math.Ceiling(sizeW.Width));
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (3)
241(int)Math.Min(Math.Ceiling(WatermarkSize.Width * 1.75), workingArea.Width / 3), 366_watermarkSize = new Size((int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
320int visibleItemsCount = (int)Math.Ceiling((double)dropDownRect.Height / comboBox.ItemHeight);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ControlTestBase.cs (2)
185(int)Math.Ceiling((65535.0 / (primaryMonitor.Width - 1)) * point.X), 186(int)Math.Ceiling((65535.0 / (primaryMonitor.Height - 1)) * point.Y));
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1044int rowCount = (int) System.Math.Ceiling (((double) itemCount) / columnCount);
WindowsFormsIntegration (2)
System\Windows\Integration\HostUtils.cs (2)
267(int)Math.Ceiling(element.ActualWidth), 268(int)Math.Ceiling(element.ActualHeight),
WinFormsControlsTest (1)
MainForm.cs (1)
295((int)Math.Ceiling((overarchingFlowLayoutPanel.Controls.Count + 1) / 3.0) * (biggestButton.Height + (padding * 2)))