Formats the provided number with commas if it is has more than four digits.
(val)
| 11 | |
| 12 | |
| 13 | def with_commas(val): |
| 14 | """Formats the provided number with commas if it is has more than four digits.""" |
| 15 | return '{:,}'.format(int(val)) |
| 16 | |
| 17 | |
| 18 | def get_percent_of_pages(val, decimal_places_count=2): |
no outgoing calls
no test coverage detected