def number_with_precision(number, precision=3):
    """
    Formats a ``number`` with a level of ``precision``.
    
    Example::
    
        >>> number_with_precision(111.2345)
        111.235
    """
    formstr = '%01.' + str(precision) + 'f'
    return formstr % number