double.toString code example
Example 1: double to string java
double number = -895.25;
String numberAsString = String.valueOf(number);
Example 2: c# convert double to string
Double result = "12345.6789";
// outputs 12345.6789
print(result.ToString("r"));