Register display.

This commit is contained in:
Ben Vanik 2013-12-25 20:14:41 -08:00
parent a1da55a006
commit 5fef117aa0
5 changed files with 167 additions and 2 deletions

View file

@ -31,3 +31,15 @@ module.filter('hex32', function() {
}
};
});
module.filter('exp8', function() {
return function(number) {
if (number !== null && number !== undefined) {
var str = number.toExponential(8);
if (number >= 0) {
str = ' ' + str;
}
return str;
}
}
});