Reputation:
I need to use JDK1.5 for a particular application and have noticed that the Math library does not contain the Math.nextAfter()
function. I can probably kludge a version of this but I am wondering if anyone has a clever method of getting the next Double
value in a manner that emulates the Math.nextAfter()
function.
Upvotes: 1
Views: 87
Reputation: 423
You can find the implementation of the function made by OpenJDK here (be careful of their license, you may or may not be able to use their code depending on the licence you have in your project).
From what I see what their code does is the following:
Upvotes: 2