Back to project page TextCounter.
The source code is released under:
MIT License
If you think the Android project TextCounter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.premnirmal.textcounter.formatters; //www .j a v a2 s .c om import com.github.premnirmal.textcounter.Formatter; import java.text.DecimalFormat; /** * Created by prem on 10/28/14. * * Formats the text to a comma separated decimal with 2dp */ public class CommaSeparatedDecimalFormatter implements Formatter { private final DecimalFormat format = new DecimalFormat("##,###,###.00"); @Override public String format(String prefix, String suffix, float value) { return prefix + format.format(value) + suffix; } }