Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

format_number Modifier

Format a number with grouped thousands and decimal points. In other words, make it look nice.

  • Parameter 1: precision (number of decimal places before rounding)
  • Parameter 2: Decimal point (default .)
  • Parameter 3: Thousands separator (default: ,)
lucky_number: 130134.109
{{ lucky_number | format_number(1, ',', ',') }}
{{ Statamic::modify($lucky_number)->formatNumber(1, ',', ',') }}
130,134,1
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →