🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7875

Re: Formatting numbers

#7875
From: Fredrik Skanberg
Date: Thu, 10 May 2001 15:17
12 lines
1089 bytes
Take a look at the DecimalFormat class in the java.text package.

/Fredrik

Sean Capstick wrote:
> 
> Where can I find the equivalent to C's format function?  I have some
> floating point numbers that I want in a string with a fixed number of
> decimal places.
> 
> Thanks,
> Sean
Technical Details
Message-ID: <3AFAB0FA.8A032B4C@liber.se>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3afaad98_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ea16b5c01501c9a4
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-10 08:32:28 PST
Message-ID: <3AFAB0FA.8A032B4C@liber.se>
Date: Thu, 10 May 2001 17:17:14 +0200
From: Fredrik Skanberg <fredrik.skanberg@liber.se>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Formatting numbers
References: <3afaad98_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.14.71.253
X-Trace: dnews 989507834 193.14.71.253 (10 May 2001 08:17:14 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews