Skip to content

ArchiveUtils.doubleToString() rounding fails unit test under Java 8 #31

@kris-sigur

Description

@kris-sigur

Possibly an issue with Java 8.

The unit test fails when using JDK 1.8. 12.345 should be rounded to 12.34 but is rounded to 12.35 instead.

At first I thought the default rounding mode had been changed, but even setting it explicitly did not resolve the issue.

Not sure of the impact, but it is a little troubling that the same input could give different output based on whether you are using Java 8 or Java 7 to run the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions