code: public void print(double d) throws IOException {
  	    if (writer != null) {
  	        writer.write(String.valueOf(d));
  	    } else {
  	        write(String.valueOf(d));
  	    }
      }
docs: Print a double-precision floating-point number.  The string produced by
  <code>{@link java.lang.String#valueOf(double)}</code> is translated into
  bytes according to the platform's default character encoding, and these
  bytes are written in exactly the manner of the <code>{@link
  #write(int)}</code> method.
  
  @param d The <code>double</code> to be printed
  @throws IOException