diff -r ff8a017096d2 -r 4252bfc396fc emul/mini/src/main/java/java/lang/Math.java --- a/emul/mini/src/main/java/java/lang/Math.java Fri Feb 01 16:00:27 2013 +0100 +++ b/emul/mini/src/main/java/java/lang/Math.java Tue Feb 26 14:55:55 2013 +0100 @@ -643,9 +643,8 @@ * @see java.lang.Integer#MAX_VALUE * @see java.lang.Integer#MIN_VALUE */ - @JavaScriptBody(args="a", body="return Math.round(a);") public static int round(float a) { - throw new UnsupportedOperationException(); + return (int)roundDbl(a); } /** @@ -668,10 +667,12 @@ * @see java.lang.Long#MAX_VALUE * @see java.lang.Long#MIN_VALUE */ + public static long round(double a) { + return (long)roundDbl(a); + } + @JavaScriptBody(args="a", body="return Math.round(a);") - public static long round(double a) { - throw new UnsupportedOperationException(); - } + private static native double roundDbl(double d); // private static Random randomNumberGenerator; //