cast double to string java code example
Example 1: double to string java
double number = -895.25;
String numberAsString = String.valueOf(number);
Example 2: cast double to string java
double total = 44;
String total2 = Double.toString(total);
double number = -895.25;
String numberAsString = String.valueOf(number);
double total = 44;
String total2 = Double.toString(total);