You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
floor and ceil functions, when given an infinity, should return that same infinity.
Actual Behavior
The infinity is truncated to either the minimum or maximum int64:
> ceil(1/0)
-9223372036854775808
If this result is then used somewhere else, it's likely to lead to a very confusing error message at best or degenerate behavior at worst -- like trying to create 9 trillion of something. Preserving the infinity as-is, on the other hand, would cause a reasonable range error to be produced if the result is used somewhere that an int64 is required.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
May 14, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Expected Behavior
floor
andceil
functions, when given an infinity, should return that same infinity.Actual Behavior
The infinity is truncated to either the minimum or maximum
int64
:If this result is then used somewhere else, it's likely to lead to a very confusing error message at best or degenerate behavior at worst -- like trying to create 9 trillion of something. Preserving the infinity as-is, on the other hand, would cause a reasonable range error to be produced if the result is used somewhere that an int64 is required.
The text was updated successfully, but these errors were encountered: