Skip to content

QuantityFormat is not handling values properly #2794

@bacek

Description

@bacek

Describe the bug
A clear and concise description of what the bug is.

Run this code:

new QuantityFormatter().format(Quantity.fromString("3.0064771072E10"))

Expected result: 300....

Actual result: -3421768146569134080e-12

Client Version
18.0.0

Kubernetes Version
1.27

Java Version
Java 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions