Article View: borland.public.jbuilder.java.language
Article #19395Re: Rounding Double Values
From: Dan Acton
Date: Tue, 10 Feb 1998 00:00
Date: Tue, 10 Feb 1998 00:00
7 lines
741 bytes
741 bytes
If you want to generate a String representing the rounded or truncated double values, you can use the java.text.DecimalFormat class. It has a format() method that takes a double value and returns a formatted String. Dan Acton Beak International Inc.
Technical Details
Message-ID:
<6bpupg$ea64@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34D900BA.3C5103F6@gpo.online.swin.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6560186bc34ead19 X-Google-Attributes: gidf74b3,public From: "Dan Acton" <dacton@beak.com> Subject: Re: Rounding Double Values Date: 1998/02/10 Message-ID: <6bpupg$ea64@forums.borland.com> X-Deja-AN: 323781394 References: <34D900BA.3C5103F6@gpo.online.swin.edu.au> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Beak International Inc. Newsgroups: borland.public.jbuilder.java.language