human
variable number of digit in format string
assistant
Here is some code to variable number of digits `digits` in variable `value` in format string "{0:.{1}%}"

"""{0:.{1}%}""".format(value, digits)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.