🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How do I format my double as a string?

#14399
From: Ramdrive
Date: Fri, 03 Sep 1999 00:00
18 lines
808 bytes
What I've got is a double.  What I want is its value formatted as a string
of the type

99999E99
or
-99999E-99
or
99999E-99
or
-99999E99
as appropriate.

get the picture?  How is this accomplished in Java.  Oh how I long for
sprintf()!

Thanks in advance.

Bob
Technical Details
Message-ID: <7qopfp$i7s15@forums.borland.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,f561c0d27fc99a5f,start
X-Google-Attributes: gidf74b3,public
From: "Ramdrive" <bob_kuhar@ccmail.sgo.sony.com.SPAM_ME_NOT>
Subject: How do I format my double as a string?
Date: 1999/09/03
Message-ID: <7qopfp$i7s15@forums.borland.com>
X-Deja-AN: 520654109
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language