Fixed zero fill and added ability to set precision (closes #2763)