To make it simpler,
I wrote this function where I defined my slickgrid and then passed my formatter function
function roundOffValuesFormatter (row, cell, value, columnDef, dataContext) {
if(dataContext[cellID] || dataContext[cellID]) {
return Math.round(value*100)/100;
}
}
and now this formatter is called,
{id:'cellID', field:'cellID', name:'Name', width:90, editor:Slick.Editors.Text, formatter: roundOffValuesFormatter}
Now customize it to your requirements.