Opened 11 years ago

Closed 11 years ago

#2702 closed defect (fixed)

Keep the Real formatting in list(...) exactly as the user wrote it

Reported by: Adrian Pop Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: Leonardo Laguna

Description

model m
  Real x = 7e-5;
  Real y = 7e-2;
end m;

load and unparse

loadFile("m.mo"); getErrorString();
list();

and you get

model m
  Real x = 6.999999999999999e-05;
  Real y = 0.07000000000000001;
end m;

Change History (3)

comment:1 by Martin Sjölund, 11 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:2 by Adrian Pop, 11 years ago

Cc: Leonardo Laguna added

comment:3 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: acceptedclosed

Was fixed in r20744

Note: See TracTickets for help on using tickets.