Cleanup DoubleUtils.bigToDouble
See original GitHub issueMethod DoubleUtils.bigToDouble
can be replaced with direct BigInteger.doubleValue
call.
JDK-7131192 was fixed in JDK 8.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
I think we’d prefer to minimize the diffs between the branches when possible.