Method ceil(double a)
Return type: double
Member of: java.lang.Math
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 long num_days = (long)Math.ceil(time/MSEC_PER_DAY);
2 return new Double(Math.ceil(v));
3 return(int)(Math.ceil((double)_totalIdle/Math.abs((double)_numTestsPerEvictionRun)));
4 return (int) Math.ceil(totalHeight/rows);
5 return (int)Math.ceil(getResults().size() / (double)itemsPerPage);
6 return ((int) Math.ceil( this.height ));
7 Math.ceil(Math.log(Xma) / Math.log(10))));
8 int xCoord = (int) Math.ceil((float) (x - 1.0d));
9 return (int) Math.ceil((double) dataStore.size() / (double) pageSize);
10 int iLength = (int)Math.ceil(length);
11 Dimension size = new Dimension((int)Math.ceil(image.getWidth()),
12 Math.ceil(position / leaderPatternWidth);
13 int extent = (int) Math.ceil(Math.sqrt(rect.width * rect.width + rect.height * rect.height));
14 newMaxValue = (float)(Math.ceil(newMaxValue * shift) / shift);
15 Math.ceil(sleepPeriod * rate * safetyMargin)));
16 diffDate = (int)Math.ceil(
17 ( int ) Math.ceil ( textLayoutBounds.getWidth ( ) ) + 2,
18 Nfrag = (int)(Math.ceil(Math.abs(extent)/90f));
19 nCol = Math.max((int)Math.ceil(diagramWidth / pageWidth), 1);
20 case 66 /* ceiling */: return U.toNum(Math.ceil(U.toReal(x)));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.