formatInt - format an int (or long) with fixed number of digits