Java examples for java.math:BigDecimal Calculation
Returns the min number in the BigDecimal list.
//package com.java2s; import java.math.BigDecimal; import java.util.List; import java.util.TreeSet; public class Main { /**/* w ww . j a v a2 s .c o m*/ * Returns the min number in the numbers list. * * @param numbers the numbers to calculate the min. * @return the min number in the numbers list. */ public static BigDecimal min(List<BigDecimal> numbers) { return new TreeSet<BigDecimal>(numbers).first(); } }