We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BigFraction.doubleValue()
Can the BigFraction.doubleValue() method be improved by also considering Infinite values?
Infinite
hipparchus/hipparchus-core/src/main/java/org/hipparchus/fraction/BigFraction.java
Line 723 in 9ff40fd
Changed to:
if (Double.isInfinite(result) || Double.isNaN(result)) { ... }
Example:
numerator = 1175443811202636889584648110261699215671929253339678037082566183036829784156100300341131818417591797406644569806405529752410539491566888996766640542430075310377605462098357361563685103574645710283612852841417362211504458393792053529953230572830415970785545248189857341548686469982966457542855773477057255734051 denominator = 32626522339992622633551470546282737778505821290344832738793182277348616222987431136114480634269341408071340993046760559082031250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
The text was updated successfully, but these errors were encountered:
87564b1
This is now fixed in the master branch.
Thanks for the report!
Sorry, something went wrong.
use hipparchus.fraction.BigFraction#doubleValue() from latest snapshot
763d0dc
See: - Hipparchus-Math/hipparchus#273
maisonobe
No branches or pull requests
Can the
BigFraction.doubleValue()
method be improved by also consideringInfinite
values?hipparchus/hipparchus-core/src/main/java/org/hipparchus/fraction/BigFraction.java
Line 723 in 9ff40fd
Changed to:
Example:
The text was updated successfully, but these errors were encountered: