Java tutorial
//package com.java2s; import java.util.Locale; public class Main { public static String formatPrice(String prefix, float value) { return String.format(Locale.US, prefix + "%.2f", value); } }