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; |
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 |