Closed hx2A closed 2 years ago
Now it will return NaN
and print a warning.
I want to take a closer look at Python's warnings library. There are a few things I think I can do better.
This is fixed, and I made some minor upgrades to the other Python warnings.
Now back to the ASCII character issue...
In the old Processing IDE some edge cases of
map()
returnNaN
/nan
Now, py5 raises a
ZeroDivisionError: float division by zero
, which seems fair also.Should we document this somehow or print a warning? Or chance it to be more like Processing?
I really don't know!
Originally posted by @villares in https://github.com/py5coding/py5generator/discussions/108