java.lang.Math.nextAfter(float start, double direction)


java.lang.Math.nextAfter(float start, double direction)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two numbers

      float x = 98759.765f;

      double y = 154.28764;



      // print the next number for x towards y

      System.out.println("Math.nextAfter(" + x + "," + y + ")="

         + Math.nextAfter(x, y));

   }

}