/[classpath]/classpath/java/math/BigDecimal.java
ViewVC logotype

Diff of /classpath/java/math/BigDecimal.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.2.3 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.17.2.4 by tromey, Tue Sep 27 16:59:22 2005 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package java.math;  package java.math;
39    
40  public class BigDecimal extends Number implements Comparable  public class BigDecimal extends Number implements Comparable<BigDecimal>
41  {  {
42    private BigInteger intVal;    private BigInteger intVal;
43    private int scale;    private int scale;
# Line 371  public class BigDecimal extends Number i Line 371  public class BigDecimal extends Number i
371      return thisParts[1].compareTo (valParts[1]);      return thisParts[1].compareTo (valParts[1]);
372    }    }
373    
   public int compareTo (Object val)  
   {  
     return(compareTo((BigDecimal)val));  
   }  
   
374    public boolean equals (Object o)    public boolean equals (Object o)
375    {    {
376      return (o instanceof BigDecimal      return (o instanceof BigDecimal

Legend:
Removed from v.1.17.2.3  
changed lines
  Added in v.1.17.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26