emul/src/main/java/java/lang/Float.java
changeset 116 033d51e026b0
parent 84 d65b3a2fbfaf
child 181 f426de5dc7f6
     1.1 --- a/emul/src/main/java/java/lang/Float.java	Sun Sep 30 18:29:37 2012 -0700
     1.2 +++ b/emul/src/main/java/java/lang/Float.java	Tue Oct 23 16:50:27 2012 +0200
     1.3 @@ -25,6 +25,8 @@
     1.4  
     1.5  package java.lang;
     1.6  
     1.7 +import org.apidesign.bck2brwsr.core.JavaScriptBody;
     1.8 +
     1.9  /**
    1.10   * The {@code Float} class wraps a value of primitive type
    1.11   * {@code float} in an object. An object of type
    1.12 @@ -190,6 +192,7 @@
    1.13       * @param   f   the float to be converted.
    1.14       * @return a string representation of the argument.
    1.15       */
    1.16 +    @JavaScriptBody(args="d", body="return d.toString();")
    1.17      public static String toString(float f) {
    1.18          throw new UnsupportedOperationException();
    1.19  //        return new FloatingDecimal(f).toJavaFormatString();