Searched refs:rint (Results 1 - 15 of 15) sorted by relevance

/openjdk7/jdk/test/java/awt/print/Dialog/
H A DPaperSizeError.java64 double a4w = Math.rint((a4.getX(1) * 72.0) / Size2DSyntax.INCH);
65 double a4h = Math.rint((a4.getY(1) * 72.0) / Size2DSyntax.INCH);
103 if (a4w != Math.rint(dw1) || a4h != Math.rint(dh1)) {
104 System.out.println("Got " + Math.rint(dw1) + "x" + Math.rint(dh1) +
/openjdk7/jdk/test/java/lang/Math/
H A DRint.java27 * @summary Check for correct implementation of Math.rint(double)
39 failures += Tests.test("Math.rint", input, Math.rint(input), expected);
40 failures += Tests.test("Math.rint", -input, Math.rint(-input), -expected);
41 failures += Tests.test("StrictMath.rint",
42 input, StrictMath.rint(input), expected);
43 failures += Tests.test("StrictMath.rint", -input,
44 StrictMath.rint(-input), -expected);
116 System.err.println("Testing {Math, StrictMath}.rint incurre
[all...]
H A DCeilAndFloorTests.java91 if (neighborDown==Math.rint(neighborDown)) {
102 if (neighborUp==Math.rint(neighborUp)) {
/openjdk7/jdk/src/share/native/java/lang/fdlibm/src/
H A De_scalb.c59 if (rint(fn)!=fn) return (fn-fn)/(fn-fn);
H A Ds_rint.c28 * rint(x)
34 * Inexact flag raised if x not equal to rint(x).
50 double rint(double x) function
52 double rint(x)
H A Dk_standard.c427 if(x<zero&&rint(y)!=y) exc.retval = -HUGE;
431 if(x<zero&&rint(y)!=y) exc.retval = -HUGE_VAL;
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java442 public static double rint(double a) { method in class:Math
443 return StrictMath.rint(a); // default impl. delegates to StrictMath
H A DStrictMath.java404 public static double rint(double a) { method in class:StrictMath
410 * these cases, rint of the argument is the argument.
/openjdk7/jdk/src/share/classes/sun/print/
H A DRasterPrinterJob.java537 float x = (float)Math.rint(
540 float y = (float)Math.rint(
732 double w = Math.rint((dim[0]*72.0)/Size2DSyntax.INCH);
733 double h = Math.rint((dim[1]*72.0)/Size2DSyntax.INCH);
743 ix = Math.rint(
745 iy = Math.rint(
747 iw = Math.rint(
749 ih = Math.rint(
1579 w = Math.rint((210.0*ptsPerInch)/mmPerInch);
1580 h = Math.rint((297.
[all...]
H A DPSPathGraphics.java611 (float)Math.rint(scaledBounds.width+0.5),
612 (float)Math.rint(scaledBounds.height+0.5),
H A DPrintJob2D.java1112 float w = (float)Math.rint(WIDTHS[i] / 72.0);
1113 float h = (float)Math.rint(LENGTHS[i] / 72.0);
/openjdk7/jdk/src/share/native/java/lang/fdlibm/include/
H A Dfdlibm.h183 extern double rint __P((double));
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWPathGraphics.java1312 (float)Math.rint(scaledBounds.width+0.5),
1313 (float)Math.rint(scaledBounds.height+0.5),
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/
H A DJ2DAnalyzer.java789 val = Math.rint(val);
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DAffineTransform.java3817 return Math.rint(matval * 1E15) / 1E15;

Completed in 86 milliseconds