Article View: borland.public.jbuilder.java.language
Article #18310trouble with round
From: Dave Frizzell
Date: Mon, 20 Jul 1998 00:00
Date: Mon, 20 Jul 1998 00:00
12 lines
802 bytes
802 bytes
new to java, i have a double that i need to round to the hundredths place (0.01). double examPercent; examPercent = (totalGradePoints / max_points)* MAX_PERCENTAGE; round (examPercent); //??? this is very wrong do i want to use round or something else? could someone be so kind as to help me with the correct syntax. thanks, davef
Technical Details
Message-ID:
<35B2DFEC.1F19@jtechmed.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f5c385332d5757e,start X-Google-Attributes: gidf74b3,public From: Dave Frizzell <davef@jtechmed.com> Subject: trouble with round Date: 1998/07/20 Message-ID: <35B2DFEC.1F19@jtechmed.com> X-Deja-AN: 373079083 Content-Transfer-Encoding: 7bit Organization: JTech Medical Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language