Formatting output for value display