Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

julia/Float: x == 0 -> iszero(x) #1870

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Oct 18, 2024

Updates #1868

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.15%. Comparing base (5ffdd2d) to head (957a202).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1870      +/-   ##
==========================================
- Coverage   88.17%   88.15%   -0.02%     
==========================================
  Files         120      120              
  Lines       30220    30250      +30     
==========================================
+ Hits        26645    26668      +23     
- Misses       3575     3582       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -91,7 +91,7 @@ divexact(a::Rational{T}, b::AbstractFloat; check::Bool=true) where T <: Union{Si
divexact(a::Rational{BigInt}, b::BigFloat; check::Bool=true) = a/b

function divides(a::BigFloat, b::BigFloat)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off-topic, but: why do we define this only for BigFloat, not for AbstractFloat? (or alternatively, why do we define this at all... but I guess that ship has sailed sigh)

@fingolfin fingolfin merged commit f6868d0 into Nemocas:master Oct 20, 2024
29 of 30 checks passed
@nsajko nsajko deleted the iszero_julia_Float branch October 20, 2024 21:07
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.

3 participants