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

Math Interpolation - floor & ceil #7409

Closed
rjinski opened this issue Jun 29, 2016 · 3 comments · Fixed by #9692
Closed

Math Interpolation - floor & ceil #7409

rjinski opened this issue Jun 29, 2016 · 3 comments · Fixed by #9692

Comments

@rjinski
Copy link

rjinski commented Jun 29, 2016

Is it possible to add math functions for floor(float) and ceil(float) ?

@kesor
Copy link

kesor commented Jun 30, 2016

I would also add min and max to this request.

One example for usage of these would be -

resource "aws_nat_gateway" "nat" {
  count = "${min( length(var.azs), length(var.private_subnets) }"
}

@zdzolton
Copy link

(I have already had to hack an implementation for all four of these!)

mitchellh pushed a commit that referenced this issue Oct 28, 2016
Support the following math functions for interpolation:

* ceil
* floor
* max
* min

Fixes #7409
mathieuherbert pushed a commit to mathieuherbert/terraform that referenced this issue Oct 30, 2016
Support the following math functions for interpolation:

* ceil
* floor
* max
* min

Fixes hashicorp#7409
gusmat pushed a commit to gusmat/terraform that referenced this issue Dec 6, 2016
Support the following math functions for interpolation:

* ceil
* floor
* max
* min

Fixes hashicorp#7409
@ghost
Copy link

ghost commented Apr 21, 2020

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 ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants