def amount(amount):
    """
    Format amount to amount string
    Strip .0 if amount represents an integer
    """
    if amount is None: return
    amount = round(float(amount), 8)
    return str(round(amount)) if round(amount) == amount else str(amount)