Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { static public String FormatDoubleToNoDecimal(double inputvalue) { return new DecimalFormat("#").format(inputvalue); } }