add conversion specifiers - trimming trailing zeros now optional