Skip to content
Sections
Fiesta

format-numbers

Dates, numbers and names How to show dates, numbers, money, names and addresses, and which ones people mix up.

Break up long numbers so they can be read at a glance: 54,173 in English, 54.173 in German, ٥٤٬١٧٣ in Arabic. Never show a long number as plain digits. In a table, use digits that are all the same width, so the columns line up.

Each example is live, but its links go nowhere. HTML shows the markup to copy.

Preview
<div rst-stats>
  <div rst-stat>
    <span rst-stat-label>Members</span>
    <span rst-stat-num>54,173</span>
  </div>
  <div rst-stat>
    <span rst-stat-label>Messages</span>
    <span rst-stat-num>1,284,902</span>
  </div>
</div>