I would like to produce output of a two-digit number like 7.2 as 7.200, a three-digit number like 27.2 as 27.20, and a four-digit number like 127.2 as 127.2. I tried
NumberForm[7.2, 4, NumberPadding -> {"", "0"}]
but it produced verbatim 7.2, not 7.200. Even though the following would produce what I want for 27.2
Many thanks, Neil, this is exactly what I’m looking for and what I intuitively expected of the format that NumberForm would have supported! I think Wolfram should make it a built-in capability.
Will also have a closer read of the link you provided.