🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Fixing Decimal point??!?

#19006
From: Simon
Date: Sun, 22 Mar 1998 00:00
11 lines
1001 bytes
Hi everyone!
    Can anyone tell me how do I round a  <double> value number with the
number of  decimal points specified by myself . I only knows how to
round a <double> value number to the nearest whole number with a
specified <double> value using *rint(double)* method. For example, if I
want to round a double value number of, say 12.583947384 to the nearest
two decimal point number which is 12.58, what can I do? Urgent reply
needed!! Many thanks in advance for anyone who is willing to help!!

Simon.
Technical Details
Message-ID: <35149F78.E29A4932@hotmail.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,d43ea8861e85a32e,start
X-Google-Attributes: gidf74b3,public
From: Simon <athesim@hotmail.com>
Subject: Fixing Decimal point??!?
Date: 1998/03/22
Message-ID: <35149F78.E29A4932@hotmail.com>
X-Deja-AN: 336455605
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language