List of usage examples for java.lang StrictMath min
@HotSpotIntrinsicCandidate public static double min(double a, double b)
From source file:Main.java
public static void main(String[] args) { double d1 = 10, d2 = 40, d3 = -25; System.out.println(StrictMath.min(d1, d2)); System.out.println(StrictMath.min(d1, d3)); }
From source file:Main.java
public static void main(String[] args) { int i1 = 110, i2 = 180, i3 = -195; System.out.println(StrictMath.min(i1, i2)); System.out.println(StrictMath.min(i1, i3)); }
From source file:Main.java
public static void main(String[] args) { float f1 = 51, f2 = 110, f3 = -125; System.out.println(StrictMath.min(f1, f2)); System.out.println(StrictMath.min(f1, f3)); }
From source file:Main.java
public static void main(String[] args) { long l1 = 1234567890987L, l2 = 123312123L, l3 = -213321123321L; System.out.println(StrictMath.min(l1, l2)); System.out.println(StrictMath.min(l1, l3)); }
From source file:net.nicoulaj.benchmarks.math.DoubleMin.java
@GenerateMicroBenchmark public void strictmath(BlackHole hole) { for (int i = 1; i < data.length - 1; i += 2) hole.consume(StrictMath.min(data[i - 1], data[i])); }