udunits/src/main/java/ucar/units/UnitImpl.java
public double[] convertTo(final double[] amounts, final Unit outputUnit)
            throws ConversionException {
        return convertTo(amounts, outputUnit, new double[amounts.length]);
    }
public double[] convertTo(final double[] amounts, final Unit outputUnit)
            throws ConversionException {
        return convertTo(amounts, outputUnit, new double[amounts.length]);
    }
Converts numeric values from this unit to another unit.

@param amounts
The numeric values.
@param outputUnit
The unit to which to convert the numeric values.
@return The numeric values in the output unit in allocated space.
@throws ConversionException
The units aren't convertible.