function round(data) {
    for (var i = data.length; i-- > 0;) {
        data[i] = Math.round(data[i]);
    }
    return data;
}
Simple rounding function if precision is 0.

@param {Array} data input data array
@return {Array} output data array