java.math.BigDecimal constructor works wrong with negative numbers.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.1
    • Affects Version/s: 1.1
    • Component/s: core-libs
    • 1.1fcs
    • x86, sparc
    • solaris_2.5, windows_95
    • Not verified



      Name: mgC56079 Date: 01/23/97



      ============== Here is the test ==========
      import java.math.BigDecimal;
      public class Ctor {
        public static void main (String[] args) {
          BigDecimal d=new BigDecimal("-0.12345");
          System.out.println("d="+d);
        }
      }
      ============= Here is the output of the test =============
      % java Ctor
      d=0.12345
      ===========================================================
      ======================================================================

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: