Weird Problem w/ DecimalFormat

From: Cliff (cliff_at_noemail.com)
Date: 05/11/04


Date: Mon, 10 May 2004 23:25:34 -0400

The following code snippet:

static DecimalFormat nf=new DecimalFormat("#####.00");
System.out.println(nf.format(1000.10));

sometimes stops working properly and instead of seeing 1000.10 I see 1000,10
(note the comma). I can't for the life of me figure out what is going on...
I'm using Java 1.3.1 on a Sun workstation.

Any ideas?

Cliff



Relevant Pages

  • Re: please correct...
    ... relatively unimportant. ... ***The most important thing in life is health, ... who would accept it with a comma in informal usage. ...
    (alt.usage.english)
  • Re: Doctor & Nurse
    ... Here in the good old USA, with "the best health-care system in ... the world," GPs refer patients to specialists based on whether ... Life is simpler, here. ... About the comma -- I don't think so. ...
    (alt.usage.english)
  • Re: Life was good and all was well (comma question)
    ... Storytelling ... ... > Life was good and all was well. ... > Noone seems to place a comma before the and? ...
    (alt.usage.english)
  • Re: Weird Problem w/ DecimalFormat
    ... >(note the comma). ... I can't for the life of me figure out what is going on... ... >I'm using Java 1.3.1 on a Sun workstation. ... See http://mindprod.com/jgloss/jgloss.html for The Java Glossary. ...
    (comp.lang.java.programmer)