Math: nextUp(double d) : Math « java.lang « Java by API
- Java by API
- java.lang
- Math
Math: nextUp(double d)
public class Main {
public static void main(String[] args) {
// Returns the greater adjacent of a double
double greaterAdjacent = Math.nextUp(123.0);
System.out.println("Math.nextUp (123.0) = " + greaterAdjacent);
}
}
Related examples in the same category