🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

String formatting doubles & floats

#16466
From: John Propper
Date: Wed, 24 Feb 1999 00:00
9 lines
737 bytes
How does one format a float a double into a string like printf() in the
C language?

For example, how can I format a float of 123.4 so that it's string
representation is "123.40".

Thanks ...

-- john
Technical Details
Message-ID: <36D47CA1.C8AC18BC@netvendor.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,cc1b010f2fed51be,start
X-Google-Attributes: gidf74b3,public
From: John Propper <jpropper@netvendor.com>
Subject: String formatting doubles & floats
Date: 1999/02/24
Message-ID: <36D47CA1.C8AC18BC@netvendor.com>
X-Deja-AN: 448078302
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language