Page MenuHomeFeedback Tracker

Modulus operator does not work on large numbers
New, NormalPublic

Description

When using either the % or the mod functions on numbers where the left hand side has ~7+ digits ARMA will produce a wrong answer.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Anniversary Update
Category
Scripting
Steps To Reproduce
  1. Open ARMA 3
  2. Open EDEN
  3. Run any mission
  4. Open Menu
  5. Enter hint format ["%1", 87654321 % 2] into the debug console
  6. Execute the command
  7. Notice that ARMA seems to think the answer is 0, which is wrong
  8. This can be done with any left or right hand operands where the left hand operand is sufficiently large

Event Timeline

Ourous created this task.Aug 15 2016, 3:34 AM