java.lang.Math.ulp(double d)


java.lang.Math.ulp(double d)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers numbers

      double x = 956.294;

      double y = 123.1;



      // print the ulp of these doubles

      System.out.println("Math.ulp(" + x + ")=" + Math.ulp(x));

      System.out.println("Math.ulp(" + y + ")=" + Math.ulp(y));

   }

}