Article View: es.comp.lenguajes.java
Article #1005Re: Redondeos
From: Eduardo Yáñez Parareda
Date: Mon, 18 Sep 2006 07:35
Date: Mon, 18 Sep 2006 07:35
8 lines
1236 bytes
1236 bytes
> BigDecimal big = new BigDecimal(23.505999D);
Esto te sirve...
BigDecimal big = new BigDecimal("23.505950950950905").setScale(2, BigDecimal.ROUND_HALF_UP);
De todas formas, cuando preguntes algo acost�mbrate a hacer copy&paste de lo que t�
est�s intentando. RoundingMode no existe, y s�lo has escrito una l�nea, si es un programa
m�s largo despistas a los que te intentan ayudar (no ha sido este el caso).
Technical Details
Message-ID:
<4n70jeF92lj2U1@individual.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<eei773$lgv269@cesio.mundo-r.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,49bbb31c3344c14a X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Eduardo Yáñez Parareda <eduardo.yanezNOSPAM@NOSPAMgmail.com> Newsgroups: es.comp.lenguajes.java Subject: Re: Redondeos Date: Mon, 18 Sep 2006 09:35:39 +0200 Lines: 8 Message-ID: <4n70jeF92lj2U1@individual.net> References: <eei773$lgv269@cesio.mundo-r.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net aeMOUVWyVaSENdF8ORbYeAyMX2tFKjKAhiSsdreNUgHJkqVPvi User-Agent: Thunderbird 1.5.0.5 (X11/20060808) In-Reply-To: <eei773$lgv269@cesio.mundo-r.com>