<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>https://dosideas.com/wiki/index.php?action=history&amp;feed=atom&amp;title=BigDecimal</id>
		<title>BigDecimal - Historial de revisiones</title>
		<link rel="self" type="application/atom+xml" href="https://dosideas.com/wiki/index.php?action=history&amp;feed=atom&amp;title=BigDecimal"/>
		<link rel="alternate" type="text/html" href="https://dosideas.com/wiki/index.php?title=BigDecimal&amp;action=history"/>
		<updated>2026-04-28T10:58:02Z</updated>
		<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=4506&amp;oldid=prev</id>
		<title>Acandal: /* Ver también */</title>
		<link rel="alternate" type="text/html" href="https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=4506&amp;oldid=prev"/>
				<updated>2010-01-22T20:38:23Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Ver también&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 20:38 22 ene 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Línea 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Ver también==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Ver también==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[Cómo mostrar un BigDecimal según la localización]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html Javadoc del BigDecimal]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html Javadoc del BigDecimal]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Acandal</name></author>	</entry>

	<entry>
		<id>https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=2949&amp;oldid=prev</id>
		<title>Admin en 15:55 26 ago 2009</title>
		<link rel="alternate" type="text/html" href="https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=2949&amp;oldid=prev"/>
				<updated>2009-08-26T15:55:41Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='es'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisión del 15:55 26 ago 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Línea 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Java]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La clase ''java.math.BigDecimal'' es una clase de [[Java]] para representar números con coma flotante, de manera precisa.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;La clase ''java.math.BigDecimal'' es una clase de [[Java]] para representar números con coma flotante, de manera precisa.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=650&amp;oldid=prev</id>
		<title>Admin: Página nueva: La clase ''java.math.BigDecimal'' es una clase de Java para representar números con coma flotante, de manera precisa.  La clase BigDecimal tiene métodos para operar al mismo (su...</title>
		<link rel="alternate" type="text/html" href="https://dosideas.com/wiki/index.php?title=BigDecimal&amp;diff=650&amp;oldid=prev"/>
				<updated>2008-07-29T01:16:46Z</updated>
		
		<summary type="html">&lt;p&gt;Página nueva: La clase &amp;#039;&amp;#039;java.math.BigDecimal&amp;#039;&amp;#039; es una clase de &lt;a href=&quot;/wiki/Java&quot; title=&quot;Java&quot;&gt;Java&lt;/a&gt; para representar números con coma flotante, de manera precisa.  La clase BigDecimal tiene métodos para operar al mismo (su...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;La clase ''java.math.BigDecimal'' es una clase de [[Java]] para representar números con coma flotante, de manera precisa.&lt;br /&gt;
&lt;br /&gt;
La clase BigDecimal tiene métodos para operar al mismo (sumar, restar, multiplicar, dividir).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Construcción==&lt;br /&gt;
Para números con punto flotante (es decir, con parte decimal) la forma recomendada de construir un objeto BigDecimal es a través de un String.&lt;br /&gt;
&lt;br /&gt;
 BigDecimal a = new BigDecimal(&amp;quot;10.20&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
La construcción utilizando un double no es precisa, por la impresición intrínseca del Double.&lt;br /&gt;
&lt;br /&gt;
==El BigDecimal en el JDK 1.4 y el JDK 1.5==&lt;br /&gt;
&lt;br /&gt;
Supongamos el siguiente código:&lt;br /&gt;
&lt;br /&gt;
 new BigDecimal(1);&lt;br /&gt;
&lt;br /&gt;
Depende donde se compile y ejecute, podemos tener problemas. En particular:&lt;br /&gt;
&lt;br /&gt;
* Compilado con el JDK 1.4, funciona OK siempre&lt;br /&gt;
* Compilado con el JDK 1.5 y ejecutado en una JVM 1.5, funciona OK&lt;br /&gt;
* Compilado con el JDK 1.5 y ejecutado en una JVM 1.4, falla con un &amp;quot;NoSuchMethodError&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====El problema====&lt;br /&gt;
&lt;br /&gt;
En JSE 1.4 NO existe el constructor BigDecimal(int). Luego el compilador del JDK 1.4 resuelve la llamada hacia el constructor Big Decimal(double).&lt;br /&gt;
&lt;br /&gt;
Ahora bien, en JSE 1.5 se agregó el constructor BigDecimal(int). Al usar este compilador, se realiza la llamada a dicho constructor. Si se ejecuta con el Runtime de 1.5, todo funciona bien. Pero al ejecutar este código con el Runtime de 1.4, no se encuentra el constructor Big Decimal(int), y cuelga como ya vemos.&lt;br /&gt;
&lt;br /&gt;
====Solución====&lt;br /&gt;
Invocar al constructor del BigDecimal con un String. O asegurarse que la ejecución se hará sobre un JSE 1.5&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
* [http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html Javadoc del BigDecimal]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>