Currently mpformat is not aware of %X and %0..x specification. A leading zero before the width field specifier should lead to fill the output with zeros instead of spaces. The possibility of x and X as hex-specifiers will add convenience to.