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

Bump ch.obermuhlner:big-math from 2.0.1 to 2.3.2 #436

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 8, 2024

Bumps ch.obermuhlner:big-math from 2.0.1 to 2.3.2.

Release notes

Sourced from ch.obermuhlner:big-math's releases.

Release 2.3.2

API changes

BigRational implements now Serializable

The BigRational class implements now the Serializable interface and can be serialized with the standard Java approach using ObjectInputStream and deserialized using ObjectOutputStream.

BigRational extends now Number

The BigRational class extends now from Number and provides the following standard methods:

  • int intValue()
  • long longValue()
  • float floatValue()
  • double doubleValue()

Bugfixes

BigRational.toFloat() and BigRational.toDouble() with large nominators/denominators

The methods BigRational.toFloat() and BigRational.toDouble() failed to convert large nominators/denominators into valid float, respectively double numbers.

For example:

BigRational x = BigRational.valueOf("8.804462619980757911125181749462772084351");
System.out.println("rational : " + x.toRationalString());
System.out.println("float    : " + x.toFloat());

would print:

rational : 8804462619980757911125181749462772084351/1000000000000000000000000000000000000000
float    : NaN

After the fix this example prints:

rational : 8804462619980757911125181749462772084351/1000000000000000000000000000000000000000
float    : 8.804462

BigRational.toIntegerRationalString() with small negative numbers

Negative rational numbers smaller than 1 where printed without - sign.

For example:

</tr></table> 

... (truncated)

Commits
  • a52c3eb prepare release 2.3.2
  • a74d36c add functions toDegrees() and toRadians() to convert between degrees and radians
  • 0204fe3 finish release 2.3.1
  • 086afa0 release 2.3.1
  • 462b528 document BigDecimalMath.root(x, n) faster with large n
  • af79269 document toIntegerRationalString() fix
  • 11acc9f fix indentation and add unit test for toIntegerRationalString() fix
  • 5ef5298 Update BigRational.java
  • 8c8bee2 add BigRational bugfixes and API enhancements
  • 94936ab make BigRational implement Number
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ch.obermuhlner:big-math](https://github.com/eobermuhlner/big-math) from 2.0.1 to 2.3.2.
- [Release notes](https://github.com/eobermuhlner/big-math/releases)
- [Commits](eobermuhlner/big-math@v2.0.1...v2.3.2)

---
updated-dependencies:
- dependency-name: ch.obermuhlner:big-math
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jul 8, 2024
@mswiderski mswiderski merged commit 10010a4 into main Jul 20, 2024
1 check passed
@mswiderski mswiderski deleted the dependabot/maven/ch.obermuhlner-big-math-2.3.2 branch July 20, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant