Skip to content

rather simple decimal floats are converted to scientific / "E" notation #244

@WilliButz

Description

@WilliButz

Description

Literal floats that I'd consider short and simple enough to represent them in decimal notation are reformatted to scientific / e notation.
I didn't find any specific reasoning about this behavior and I find it quite unexpected, therefore this issue.

Small example input

{ a = 0.2; b = 0.068; c = 0.009; }

Expected output

{
  a = 0.2;
  b = 0.068;
  c = 0.009;
}

Actual output

{
  a = 0.2;
  b = 6.8e-2;
  c = 9.0e-3;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions