BigDecimal - problem with signed strings e.g. "+0"

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.3.0
    • Affects Version/s: 1.1.3
    • Component/s: other-libs
    • None
    • beta
    • sparc
    • solaris_2.5.1



      Name: rlT66838 Date: 08/01/97


      import java.math.*;

      public class bd
      {
         public static void main(String args[])
         {
            String inString = (args.length>0) ? args[0] : "+0.00";

               BigDecimal bigDec = new BigDecimal(inString);

               System.out.println("inString = " + inString);
               System.out.println("bigDec = " + bigDec);
         }

      }


      company - sun , email - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: