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