mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
Prior to this change, combinations(42,21) did not return an integer, despite its value being well below MAX_SAFE_INTEGER. Now the multiplications and divisions are balanced to try to keep the intermediate results within the safe range. Adds a couple of tests for larger values of combinations(). Resolves #2413. Co-authored-by: Jos de Jong <wjosdejong@gmail.com>