Skip to content

math.fsum: handle special values (inf, nan); -inf + inf raises ValueError#2727

Open
fgallaire wants to merge 1 commit into
brython-dev:masterfrom
fgallaire:math-fsum
Open

math.fsum: handle special values (inf, nan); -inf + inf raises ValueError#2727
fgallaire wants to merge 1 commit into
brython-dev:masterfrom
fgallaire:math-fsum

Conversation

@fgallaire

Copy link
Copy Markdown
Contributor
>>> math.fsum([float('inf'), float('-inf')])
nan                             # before
>>> math.fsum([float('inf'), float('-inf')])
ValueError: -inf + inf in fsum  # after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant