Method min(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 percent = Math.min((currentValue+1)/(double)finalValue, 1.0);
2 double ratio = Math.min(Math.min(xRatio, yRatio), 1.0);
3 n.x += Math.max(-5, Math.min(5, n.dx));
4 minElapsed = (long) Math.min(MAX_INTERVAL, Math.max(MIN_LAMBDA * ONE_DAY / pilferRate, MIN_INTERVAL));
5 Xmi[i] = Math.min(XY[i], Xmin[i]);
6 return new Double(Math.min(d1.doubleValue(), d2.doubleValue()));
7 pilferage = Math.min(pilferage, theInventoryReport.theQuantity);
8 endPointX = Math.min (line.getX2 (), (bounds.x+bounds.width)-MIN_WIDTH);
9 time = Math.min(maxTime, scheduler.nextEventTime());
10 Math.max ( Math.min ( x_scale, y_scale ), ovalSizeMin );
11 double k = Math.min(xk,yk);
12 (Math.max(0.0d, Math.min((double) m_width, clip.xMin)),
13 double w = Math.min(tileWidth, tiledWidth);
14 ymin = Math.min(ymin, a[0]);
15 min = Math.min(min, d1);
16 double scale = Math.min(pf.getImageableWidth() / d.width,
17 scale = Math.min(pageWidth / (double)(drawingArea.width + 1), pageHeight / (double)(drawingArea.height + 1));
18 curRate = Math.min(MAX_RATE, curRate);
19 Math.min(picHeight / s.width, picWidth / s.height):
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.