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

Parsing scientific notation with NumberFormat doesn't give expected output when plus sign is used

XMLWordPrintable

    • x86_64
    • windows_10

      A DESCRIPTION OF THE PROBLEM :
      Using NumberFormat.getInstance(Locale.US).parse(value).doubleValue();
      1) When the value is 1.699800000000000E+004, the result is 1.6998.
      2) When the value is 1.699800000000000e004, the result is 1.6998.



            nishjain Nishit Jain
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: