Weird Problem w/ DecimalFormat
From: Cliff (cliff_at_noemail.com)
Date: 05/11/04
- Next message: Roedy Green: "Re: Jikes"
- Previous message: Mark A. Washburn: "Re: Optimising Java Programs"
- Next in thread: Thomas Weidenfeller: "Re: Weird Problem w/ DecimalFormat"
- Reply: Thomas Weidenfeller: "Re: Weird Problem w/ DecimalFormat"
- Reply: Fred: "Re: Weird Problem w/ DecimalFormat"
- Reply: Roedy Green: "Re: Weird Problem w/ DecimalFormat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Roedy Green: "Re: Jikes"
- Previous message: Mark A. Washburn: "Re: Optimising Java Programs"
- Next in thread: Thomas Weidenfeller: "Re: Weird Problem w/ DecimalFormat"
- Reply: Thomas Weidenfeller: "Re: Weird Problem w/ DecimalFormat"
- Reply: Fred: "Re: Weird Problem w/ DecimalFormat"
- Reply: Roedy Green: "Re: Weird Problem w/ DecimalFormat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|