🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2761

Formatting floats

#2761
From: Akber Datoo
Date: Sat, 04 Mar 2000 00:00
13 lines
846 bytes
Hi!

I need to format floats to be represented in a specified number of
significant figures

Does anyone know how I could do this? There doesn't seem to be a method in
Float to extract the exponent and significand separately.

Someone suggested the DecimalFormat class, but I can't seem to understand
its use.

Thanks in advance,
Akber Datoo.
Technical Details
Message-ID: <89po1m$qu04@bornews.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: 1089d0,88f18f0a95ed80e3,start
X-Google-Attributes: gid1089d0,public
From: "Akber Datoo" <akber@hdatoo.fsnet.co.uk>
Subject: Formatting floats
Date: 2000/03/04
Message-ID: <89po1m$qu04@bornews.borland.com>
X-Deja-AN: 592909188
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.api