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