With Double d, I would like to know that Double 'is the smallest possible value greater than d.
When d == 0, I know the answer, which will be Double.MIN_VALUE:
> 0d + Double.MIN_VALUE
4.9E-324
But what about all ohter numbers like 1d for example?
> 1d + Double.MIN_VALUE
1.0
I need to make significant numbers, but, in short, I'm looking for a method that gives me the following double
nextDouble(0)==4.9E-324
Peter source
share