Java Number Min Value min(Number num1, Number num2)

Here you can find the source of min(Number num1, Number num2)

Description

min

License

Apache License

Declaration

public static Number min(Number num1, Number num2) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Number min(Number num1, Number num2) {
        return (num1.doubleValue() > num2.doubleValue()) ? num2 : num1;
    }/*w  w w  .  j  a v  a  2s.com*/
}

Related

  1. min(Integer i1, Integer i2)
  2. min(long m, long n)
  3. min(long x, long y)
  4. min(Number a, Number b)
  5. min(Number n0, Number n1)
  6. Min(Object in)
  7. min(Object o1, Object o2)
  8. min(String a, String b)
  9. min(String a, String b)