Make Numbers Pretty

Load The NumberFormat Library

// Make value that is assigned to an instance of numberformat
valmake_pretty=java.text.NumberFormat.getInstance

Make An Integer Pretty

// Format 10000 to 10,000
make_pretty.format(10000)

Make A Float Pretty

// Format to 10000.1928 to 10,000.193
make_pretty.format(10000.1928)

10,000.193

Load The NumberFortmat Library Set For European Numbers

// Set the locale to germany
valgermany=newjava.util.Locale("de","DE")// Make value that is assigned to an instance of numberformat set to germany
valmake_pretty_de=java.text.NumberFormat.getIntegerInstance(germany)