Method max(double a, double b)
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 Math.max(0.0, 1.0 - (((double) (now - lastActivity)) / ACTIVITY_DELAY));
2 this.currentOrder = Math.max(0.0, this.currentOrder);
3 (Math.max(0.0d, Math.min((double) m_width, clip.xMin)),
4 double forecastedDemand = Math.max(0.0, this.getForecastedOrder());
5 L[j][j] = Math.sqrt(Math.max(d, 0.0));
6 minElapsed = (long) Math.min(MAX_INTERVAL, Math.max(MIN_LAMBDA * ONE_DAY / pilferRate, MIN_INTERVAL));
7 Xma[i] = Math.max(XY[i], Xmax[i]);
8 return new Double(Math.max(d1.doubleValue(), d2.doubleValue()));
9 if (Math.abs(x - y) > 10 * eps * Math.max(Math.abs(x), Math.abs(y))) {
10 startPointX = Math.max (line.getX1 (), bounds.x+MIN_X);
11 double inverseScale = Math.max(((double) (2*b.x + b.width)) / width, ((double) (2*b.y + b.height)) / height);
12 Math.max ( Math.min ( x_scale, y_scale ), ovalSizeMin );
13 x1 = Math.max( Math.max(a[0],a[2]), Math.max(a[4],a[6]) );
14 double largest = Math.max(Math.abs(_xMin), Math.abs(_xMax));
15 ymax = Math.max(ymax, a[1]);
16 double w = Math.max(titleWidth, height);
17 width = (int) Math.max(width, dim.getWidth());
18 curRate = Math.max(MIN_RATE, curRate);
19 double maxX = Math.max(decorationRect.getMaxX(),
20 double c = Math.max(c1, Math.max(c2, c3));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.