def param_to_str(model, p):
    """Represent value of *p*'th parameter of *model* as a string."""
    parameter = [param for param in model][p]
    # Represent P9 and P12 (scale parameters) in shorter form
    return parameter.value_str if p not in [8, 11] else ("%.3e" % parameter.value)