app.filter('comma2decimal', [ function() { // should be altered to suit your needs return function(input) { var ret=(input)?input.toString().trim().replace(",","."):null; return parseFloat(ret); }; }]);