"Math Operation" produces wrong output for decimals
In particular, arguments appear to be being cast to integers before operation.
Replicate:
- Create a new custom map.
- Add a Dungeon Core for player 1.
- Create 6 decimals "A" := 1.5, "B" := 1.6, "A+B", "A-B", "A*B", "A/B".
- Create an objective with description "{0} {1} {2} {3} {4} {5}".
- Create a new script with "On Start" trigger and four Math Operation actions:
- "A"+"B" -> "A+B"
- "A"-"B" -> "A-B"
- "A"*"B" -> "A*B"
- "A"/"B" -> "A/B"
- After above actions add a "Set Objective Contents (Number)" updating the created objective with all 6 decimals in order.
- Export and test.
- Observe the objective window.
Expected: Objective window reads "1.5 1.6 3.1 -0.1 2.4 0.9375".
Actual: Objective window reads "1.5 1.6 2 0 1 1".
Game Version:
Steam Public
Platform:
Windows
Hi bzy.xyz,
Same as my previous response we really appreciate the comprehensive nature of the report and we're sure to look into it. Hopefully we'll be able to hotfix these sometime soon.
Cheers,
Lee