|  | How to round a number to n decimal places in Java - Stack OverflowWhat I'd like is a method to convert a double to a string which rounds using the ... 
 Use setRoundingMode , see linked Javadoc, set the RoundingMode explicitly to
  ... stackoverflow.com |  |