Groovy web console

subscribe to the feed Subscribe
to this
site
coso (via #groovywebconsole)
tweet this snippet Tweet
this
script

coso

Published 2 months ago by yisus
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.DecimalFormat;
DecimalFormat formatter = new DecimalFormat("###,###,###.##");
// Imprime esto con cuatro decimales, es decir: 7,1234
System.out.println (formatter.format (1500000.12342383));