Harmony
  1. Harmony
  2. HARMONY-988

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Estimated Complexity:
      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.

      1. diff.txt
        3 kB
        Mike Ringrose

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Mikhail Loenko
              Reporter:
              Mikhail Fursov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development