format double to string java code example Example: double to string java double number = -895.25; String numberAsString = String.valueOf(number);