🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Limiting the number of decimal places...

#15362
From: Steve Horsley
Date: Mon, 21 Jun 1999 00:00
11 lines
916 bytes
I think that's what java.text.NumberFormat is for.
Never used it myself, yet.

Steve.
//----------------------
Dan Patterson wrote:
> 
> I am doing a calculation and want to limit the number of decimal places that
> are returned by the calculation. (e.g. I want 1.24 instead of
> 1.24234365423). Does anyone know how to do this ?
>
Technical Details
Message-ID: <376E6727.3A3C6C54@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7kli52$5hj5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,15b92570b266bfb4
X-Google-Attributes: gidf74b3,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: Limiting the number of decimal places...
Date: 1999/06/21
Message-ID: <376E6727.3A3C6C54@cwcom.co.uk>
X-Deja-AN: 492154003
Content-Transfer-Encoding: 7bit
References: <7kli52$5hj5@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Cable & Wireless Communications
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language