Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String convertDoubleToString(double f) {
if (f - (int) f == 0.0) {
return Double.toString(f).split("\\.")[0];
} else {
return Double.toString(f);
}
}
}