Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Handling nan and inf values #27

Open
rocky opened this issue Nov 26, 2017 · 0 comments
Open

Handling nan and inf values #27

rocky opened this issue Nov 26, 2017 · 0 comments

Comments

@rocky
Copy link

rocky commented Nov 26, 2017

a = 1e300 * 1e300 * 0
b = -1e300 * 1e300 * 0
c = 1e300 * 1e300
d = -1e300 * 1e300

gives:

a = nan
b = nan
c = inf
d = -inf

but Python doesn't allow these in source code to represent their internal values.

uncompyle6 uses float('nan'), etc. although there are numerous other ways to handle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant