Skip to content

Fix overflow in mean(::AbstractRange)#122

Closed
jishnub wants to merge 1 commit intoJuliaStats:masterfrom
jishnub:meanoverflow
Closed

Fix overflow in mean(::AbstractRange)#122
jishnub wants to merge 1 commit intoJuliaStats:masterfrom
jishnub:meanoverflow

Conversation

@jishnub
Copy link
Copy Markdown

@jishnub jishnub commented Jun 30, 2022

Fixes #120, now

julia> mean(Int8(123):Int8(123))
123.0

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 30, 2022

Codecov Report

Merging #122 (9eb9a8e) into master (0588f2c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #122   +/-   ##
=======================================
  Coverage   96.94%   96.95%           
=======================================
  Files           1        1           
  Lines         426      427    +1     
=======================================
+ Hits          413      414    +1     
  Misses         13       13           
Impacted Files Coverage Δ
src/Statistics.jl 96.95% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0588f2c...9eb9a8e. Read the comment docs.

@jishnub
Copy link
Copy Markdown
Author

jishnub commented Jun 30, 2022

Seems to be a duplicate of #115

@jishnub jishnub closed this Jun 30, 2022
@jishnub jishnub deleted the meanoverflow branch June 30, 2022 05:12
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.

mean incorrectly computes means of ranges

2 participants