I have this String Number 20.000. When I do a parseDouble I get 20.0 which is right.
public class qwerty {
public static void main(String[] args) {
String num = "20.000";
System.out.println(Double.parseDouble(num));
}
}
But is there a way to preserve the zeroes and it prints 20.000 itself after parse Double?