Java Array Min Value min(final Number... numbers)

Here you can find the source of min(final Number... numbers)

Description

min

License

Open Source License

Declaration

public static Number min(final Number... numbers) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static Number min(final Number... numbers) {
        double min = Double.MAX_VALUE;
        for (final Number n : numbers) {
            final double d = n.doubleValue();
            min = Math.min(min, d);
        }//  ww w  .j a  v  a  2 s.  c  o  m
        return min;
    }
}

Related

  1. min(final int... values)
  2. min(final int[] arr)
  3. min(final int[] values)
  4. min(final int[] values)
  5. min(final long[] array)
  6. min(final T... elements)
  7. min(float a[][][])
  8. min(float... fs)
  9. min(float... values)