×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
My program has very heavy calculations.   Using BigDecimal may effect the
performance.

-----Original Message-----
From: Dieter.Bender@t-online.de [mailto:Dieter.Bender@t-online.de]
Sent: Thursday, December 13, 2001 11:16 AM
To: java400-l@midrange.com
Subject: Re: DecimalFormat


Hi,
please use plain text!

Am Donnerstag, 13. Dezember 2001 15:09 schrieben Sie:
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
snip

> I use DecimalFormat to round float variables into either two decimals or
> zero decimal by using:
> DecimalFormat two = new DecimalFormat("0.00");
> DecimalFormat zero = new DecimalFormat("0.");

why don't you use BigDecimal?

--
mfG

Dieter Bender


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.