converting Double to string

If you are getting long numbers of chracters after the decimal point, try using DecimalFormat or String.format to control the output in a Java Snippet.

Following links show how to use them
E.g.

or

http://examples.javacodegeeks.com/core-java/lang/string/java-string-format-example/ (See example 3 for String.format(…) syntax

Steve