Skip to content

Any way to avoid "x: 0.00001" to "x=1.0E-5"  #581

Open
@cndaimin

Description

@cndaimin

My code:

public static void main(String[] args) throws Exception {
        Config conf = ConfigFactory.parseString("x: 0.00001");
        String rendered = conf.resolve().root().render();
        System.out.println(rendered);
    }

output is:
{
# String: 1
"x" : 1.0E-5
}
I prefer 0.00001 rather than 1.0E-5, so my question is how to prevent the transformation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions