“OverflowError: Python int too large to convert to C long” on windows but not mac
You’ll get that error once your numbers are greater than sys.maxsize: You can confirm this by checking: To take numbers with larger precision, don’t pass an int type which uses a bounded C integer behind the scenes. Use the default float: