Java tutorial
//package com.java2s; import android.annotation.SuppressLint; import java.math.BigDecimal; public class Main { @SuppressLint("DefaultLocale") public static String getPriceString(double price) { BigDecimal a1 = new BigDecimal(Double.toString(price)); return String.valueOf(a1.doubleValue()); } }