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
cyclus_large
constant
#1746
Comments
Turns out we already have constants for this in
|
I found those recently, too, but they seemed to be named in a way that was intended for some specific purpose. Perhaps we can revisit their naming so that it is more clear how they can/should be used. |
They're not used anywhere in cyclus/cyclus or cyclus/cycamore. Based on their names it sounds like they might be intended for this specific purpose (specifying an upper/lower bound) but I agree that we could use more intuitive names. What do you think about changing them to something more generic like:
Looking at the rest of this file:
|
Trying to clean up places in cyclus and cycamore where we use Many of the places it is used in cycamore can be found here |
I don't recall how we chose 1e299. Any idea how different it is from the IEEE max double? |
The IEEE max double is the same as |
Many places throughout the codebase
1e299
is used to represent "a very large number". This is not best practice and I suspect it could lead to overflow errorsThe text was updated successfully, but these errors were encountered: