jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

int * long multiplication gives wrong result for big number #320

Open nixeneko opened 2 years ago

nixeneko commented 2 years ago

Environments:

How to reproduce:

print(1 * 10000000000)

Result:

1410065408

The intended result is 10000000000, as print(1L * 10000000000) and print(10000000000 * 1) give 10000000000.

Thank you

jdf commented 2 years ago

Whoa, good one! Thank you. I am doing some shenanigans with numerics; maybe you've found the first known bug.