Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a proper definition of machine constants. #4042

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Modelica/Constants.mo
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ package Constants

// Machine dependent constants
final constant Real eps=ModelicaServices.Machine.eps
"Biggest number such that 1.0 + eps = 1.0";
"The difference between 1 and the least value greater than 1 that is representable in the given floating point type";
HansOlsson marked this conversation as resolved.
Show resolved Hide resolved
final constant Real small=ModelicaServices.Machine.small
"Smallest number such that small and -small are representable on the machine";
"Minimum normalized positive floating-point number";
final constant Real inf=ModelicaServices.Machine.inf
"Biggest Real number such that inf and -inf are representable on the machine";
"Maximum representable finite floating-point number";
final constant Integer Integer_inf=ModelicaServices.Machine.Integer_inf
"Biggest Integer number such that Integer_inf and -Integer_inf are representable on the machine";

Expand Down