Skip to content

Very large real numbers should be written in exponential form #10476

@ceraolo

Description

@ceraolo

Description

Very large real numbers should be written in exponential form also in plotting perspective

Steps to Reproduce

Run the following code:

model Test
 parameter Real X=1e9;
 Real y;
equation
 y=time;
end Test;

This is what is displayed in plotting perspective:
image
X is too large, and difficult to read

Expected Behavior

I propose that numerical values be written in a more compact way. In this case the number could be written in several easily-readable ways, such as 1e9, 1.0e9, even 1.000e9.
Written as 1000000000 is unsatisfying for me: it requires the user to count zeros. Up to 1.000e9, the number is immediately identified without the need of counting zeros.

Screenshots

Version and OS

1.20.0

  • OpenModelica Version: [e.g. omc --version or Help->About OMEdit from OMEdit]
  • OS: [e.g. Windows 10, 64 bit]
  • Versions of used Modelica libraries if applicable

Additional Context

Metadata

Metadata

Assignees

Labels

COMP/GUI/OMEditIssue and pull request related to OMEdit

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions