mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 11:42:58 -06:00
c94f8f9067
The division operator now always performs floating point division, whereas before it would choose between float and int division based on the types of its arguments. We have a specific error message for when a fractional number is used as an index in HCL, but this additional upgrade guidance provides a specific solution to the problem: the floor function. Sadly we don't have enough context in the current design of the upgrade tool to make this fix automatic. With some refactoring it may be possible to apply the fix automatically within list brackets, but since that is a relatively complex change we'll first try this manual solution prompted by an error message, because in practice so far we've seen this reported only in the context of list indexing and our error check will catch that and make the user aware of the need for a fix there. |
||
---|---|---|
.. | ||
0-7.html.markdown | ||
0-8.html.markdown | ||
0-9.html.markdown | ||
0-10.html.markdown | ||
0-11.html.markdown | ||
0-12.html.markdown | ||
index.html.markdown |