Version: 1.0.88.0
Frequency: Consistently
Severity: Blocker
Marketplace package name: justflight-aircraft-pistonduke
Context: In flight
Bug description: There was an undocumented change to the behavior of the integer division operator in RPN. It appears to no longer function, allowing the floating point value to continue on the stack. This breaks many animations and underlying calculations in our Black Square aircraft.
2 Likes
I confirm this.
Expected result is a rounded-down integer.
FS2020 returns:
3 2 div = 1
3.0 2.0 div = 1
2.9 2 div = 1
3.1 div 2 = 1
FS2024 omits rounding if operands are non-integer:
3 2 div = 1.0
3.0 2.0 div = 1.5
2.9 2 div = 1.45
3.1 div 2 = 1.55
This breaks many animation templates in subtle ways.
1 Like
@MartynJF @noolaero
The bug is confirmed and has been logged.
A fix is being implemented.
Best regards,
Eric / Asobo
1 Like
As long as the “int” or “flr” operators are working correctly they might offer a workaround (insert after your “div” instruction).