Posted By

indianocean on 08/06/07


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

bobmin
rtipton


Format a number


 / Published in: Java
 

URL: java format

  1. float value = 13003123;
  2. NumberFormat nf =new DecimalFormat("#,###,###", new DecimalFormatSymbols(Locale.UK));
  3. System.out.println(nf.format(value));

Report this snippet  

You need to login to post a comment.