Before submitting a bug to JIRA, I was curious to know, how exact should
Harmony behave when compared to the RI. For example, the code below produces
different results when compared to the RI.

  DecimalFormat f = new DecimalFormat(".1");
  System.out.println(f.format(17.16));

Harmony outputs 17.2, while the RI outputs 17.1. The reason for the
difference is that Harmony's underlying implementation is taken from ICU
which supports options other than what is specified by the RI.

Should this difference be considered a bug?

Thanks,
Mike Ringrose

Reply via email to