You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please enhance the example in README.md so that it also shows +/-infinity and NaN values. I'd like to know how these are represented and whether it's compatible with python.
The text was updated successfully, but these errors were encountered:
Infinity and NaN are used just like any other numeric value. Just like in ES5, they are case sensitive. You can put a + or - directly in front of them.
They are both compatible with Python. In Python 2, Infinity and NaN are represented by float('inf') and float('nan'). In Python 3, they are represented by math.inf and math.nan.
Sure, I already looked it up in the sources. Just make life easier for lazy people like me. Also, you want to show off all your features in your small example, no?
Please enhance the example in README.md so that it also shows +/-infinity and NaN values. I'd like to know how these are represented and whether it's compatible with python.
The text was updated successfully, but these errors were encountered: