def formatDollars(d,noneValue='',zeroValue='$0'):
    """Formats a number as a whole dollar value with alternatives for None and 0."""
    if d is None:
        return noneValue
    elif d==0:
        return zeroValue
    return '${:.0f}'.format(d)