---
title: '|apnumber'
description: spells out one through nine, AP style.
date: '2026-08-21'
categories:
  - Filter
  - Number
canonical: https://coolify.djangotemplatetagsandfilters.com/filters/apnumber/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/ref/contrib/humanize/#std-templatefilter-apnumber
---

# |apnumber

spells out one through nine, AP style.

## Documentation

Follows the Associated Press style rule for numbers in prose: spell out one through nine, use figures for 10 and above.

### Template

```django
{% load humanize %}
<p>{{ 3|apnumber }} comments</p>
<p>{{ 42|apnumber }} comments</p>
```

### Result

```django
<p>three comments</p>
<p>42 comments</p>
```

Values outside one through nine are returned unchanged, so it is safe to apply to a whole column of numbers.
