Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { System.out.println(Math.ulp(1.0)); System.out.println(Math.ulp(1.0f)); System.out.println(Math.ulp(5000000.0)); System.out.println(Math.ulp(5000000.0f)); System.out.println(Math.ulp(50000000.0)); System.out.println(Math.ulp(50000000.0f)); } }
2.220446049250313E-16
1.1920929E-7
9.313225746154785E-10
0.5
7.450580596923828E-9
4.0