src/share/classes/java/lang/Float.java

Print this page

        

@@ -549,11 +549,11 @@
      *
      * @return  a {@code String} representation of this object.
      * @see java.lang.Float#toString(float)
      */
     public String toString() {
-        return String.valueOf(value);
+        return Float.toString(value);
     }
 
     /**
      * Returns the value of this {@code Float} as a {@code byte} (by
      * casting to a {@code byte}).