Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String convertToFatsString(double amount) { return "Fats: " + new DecimalFormat("####.##").format(amount) + "g"; } }