Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4069162

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.1.3
    • 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 - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: