🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Limiting the number of decimal places...

#15197
From: flashback
Date: Sun, 04 Jul 1999 00:00
32 lines
1212 bytes
take  look at BigDecimal or DecimalFormat

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 ?
> 
> Many thanks
> 
> Dan
> 
> Daniel E Patterson, Ph.D.
> Spider Product Manager
> Welcom
> 281.558.0514 Phone
> 281.584.7828 Fax
> www.welcom.com
> dpatterson@welcom.com

regards

gregor

-- 


the best is yet to come...

http://gregor.url4life.com
icq-# 14100227
public key available at pgp.ai.mit.edu
Technical Details
Message-ID: <377F1107.CE8E9A2B@netcologne.de>
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: flashback <flashback@netcologne.de>
Subject: Re: Limiting the number of decimal places...
Date: 1999/07/04
Message-ID: <377F1107.CE8E9A2B@netcologne.de>
X-Deja-AN: 496983916
Content-Transfer-Encoding: 7bit
References: <7kli52$5hj5@forums.borland.com>
X-Accept-Language: en,de
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: flashback@netcologne.de
Newsgroups: borland.public.jbuilder.java.language