aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/math/BigDecimal.java
AgeCommit message (Collapse)AuthorFilesLines
2003-02-14BigDecimal.java (BigDecimal(String)): Always set scale to zero when there is ↵Mark Wielaard1-2/+4
an exponent and the significant is zero. * java/math/BigDecimal.java (BigDecimal(String)): Always set scale to zero when there is an exponent and the significant is zero. (divide): Always set scale to newScale even in special ZERO case. From-SVN: r62908
2003-02-07BigDecimal (valueOf): fix DiagBigDecimal val008, val013 tests; see patch ↵Stephen Crawley1-18/+42
#1016 on Savannah. 2003-02-07 Stephen Crawley <crawley@dstc.edu.au> * java/math/BigDecimal(valueOf): fix DiagBigDecimal val008, val013 tests; see patch #1016 on Savannah. 2003-02-07 Stephen Crawley <crawley@dstc.edu.au> * java/math/BigDecimal.java (BigDecimal): enhance parsing of exponents (toString): do not return Strings starting with . and - erroneously. Improves Mauve results to 12 of 600 instead of 16 of 338 on DiagBigDecimal. From-SVN: r62540
2002-01-22Add license clarification.Mark Wielaard1-5/+16
From-SVN: r49104
2001-11-25re PR libgcj/4583 (problems BigDecimal(double) ctor.)Tom Tromey1-8/+111
Fix for PR libgcj/4583: * java/math/BigDecimal.java (BigDecimal(double)): Rewrote. (BigDecimal(String)): Likewise. From-SVN: r47329
2001-01-10* java/math/BigDecimal.java (divide): Fixed comment.Warren Levy1-1/+1
From-SVN: r38862
2001-01-10re PR libgcj/1596 (setScale() missing from java.math.BigDecimal)Warren Levy1-6/+28
Fix for PR libgcj/1596: * java/math/BigDecimal.java (divide): Check newScale for validity. Ensure that BigInteger.pow() is called with a non-negative value. (setScale (int)): New public method. (setScale (int,int)): New public method. From-SVN: r38861
2000-10-27Makefile.am: Added locale files from Classpath.Warren Levy1-21/+23
* Makefile.am: Added locale files from Classpath. * Makefile.in: Rebuilt. * gnu/java/locale/Calendar.java: New file. * gnu/java/locale/Calendar_de.java: New file. * gnu/java/locale/Calendar_en.java: New file. * gnu/java/locale/Calendar_nl.java: New file. * java/lang/ClassNotFoundException.java: Replaced with Classpath file. * java/math/BigDecimal.java (intVal): Renamed from 'num' for serialization compatibility. (scale): Made private. (serialVersionUID): New field. * java/math/BigInteger.java (ival): Made transient. (words): Made transient. (bitCount): New serialization field. (bitLength): Ditto. (firstNonzeroByteNum): Ditto. (lowestSetBit): Ditto. (magnitude): Ditto. (signum): Ditto. (serialVersionUID): New field. (readObject): New method. (writeObject): New method. * java/util/BitSet.java (serialVersionUID): New field. * java/util/Calendar.java: Replaced with Classpath file. * java/util/GregorianCalendar.java (GregorianCalendar): Pass result of getDefault() for TimeZone or Locale instead of passing nulls. * java/util/Locale.java (serialVersionUID): New field. (writeObject): New method. (readObject): New method. * java/util/SimpleTimeZone.java: Replaced with Classpath file. Serialization mods. From-SVN: r37080
2000-04-11ObjectStreamException.java: New file.Warren Levy1-0/+348
* java/io/ObjectStreamException.java: New file. * java/io/OptionalDataException.java: New file. * java/io/StreamCorruptedException.java: New file. * java/math/BigDecimal.java: New file. * java/sql/CallableStatement.java: New file. * java/sql/Connection.java: New file. * java/sql/DataTruncation.java: New file. * java/sql/DatabaseMetaData.java: New file. * java/sql/Date.java: New file. * java/sql/Driver.java: New file. * java/sql/DriverManager.java: New file. * java/sql/DriverPropertyInfo.java: New file. * java/sql/PreparedStatement.java: New file. * java/sql/ResultSet.java: New file. * java/sql/ResultSetMetaData.java: New file. * java/sql/SQLException.java: New file. * java/sql/SQLWarning.java: New file. * java/sql/Statement.java: New file. * java/sql/Time.java: New file. * java/sql/Timestamp.java: New file. * java/sql/Types.java: New file. * Makefile.am: Added above new files. * Makefile.in: Rebuilt. * mauve-libgcj: Turned on java.math, java.sql and java.security tests. * java/net/MulticastSocket.java (MulticastSocket): Pass values a la DatagramSocket constructor instead of null. java.sql is JDK 1.1 Compliant From-SVN: r33077