Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-988

[classlib][util] Formatting doubles: different behaviour with RI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Classlib
    • None
    • Moderate

    Description

      This simple line produces different results using RI and Harmony VMs

      System.out.format("%.1f\n", 1.45);
      Harmony: 1.4
      RI: 1.5

      I think that this is our bug.

      I tried to find the source of the problem but faced with problem that I can't find sources for com.ibm.icu.text.DecimalFormat file.

      Attachments

        1. diff.txt
          3 kB
          Mike Ringrose

        Issue Links

          Activity

            People

              mloenko Mikhail Loenko
              mfursov Mikhail Fursov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: