question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cleanup DoubleUtils.bigToDouble

See original GitHub issue

Method DoubleUtils.bigToDouble can be replaced with direct BigInteger.doubleValue call. JDK-7131192 was fixed in JDK 8.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
netdpbcommented, Apr 3, 2019

Do we know whether that fix was backported to Java 7, or is also evident in the Android SDK?

I don’t think it’s worth deprecating it, since it’s not public. @lowasser, your thoughts?

0reactions
kluevercommented, Aug 13, 2019

I think we’d prefer to minimize the diffs between the branches when possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

guava/DoubleUtils.java at master - GitHub
Google core libraries for Java. Contribute to google/guava development by creating an account on GitHub.
Read more >
BigIntegerMath - guava 14.0 javadoc - Javadoc.io
bigToDouble, getting a double approximation of x is extremely fast, and 243 * then we can get a double ... 262 } else...
Read more >
Source code - Guava
bigToDouble, getting a double approximation of x is extremely fast, and 268 * then we can get a double ... 287 } else...
Read more >
com.google.common.math.BigIntegerMath Maven / Gradle / Ivy
Using DoubleUtils.bigToDouble, getting a double approximation of x is extremely fast, and * then we can get a double approximation of the square...
Read more >
[JDK-7131192] BigInteger.doubleValue() is depressingly slow
static double bigToDouble(BigInteger x) { ... http://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/math/DoubleUtils.java#136
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found