Skip to content

Outputting numbers with thousands separators #1444

@Jos512

Description

@Jos512

Would it perhaps be possible to add thousand separators to Hugo?

We can already format dates, and I think it will be valuable if we can format numbers too. For example, instead of printing 2354098 formatting it to 2,354,098 makes it easier to read.

Also see the forum topic where Bep already linked to a code snippet for this with a very flexible license. :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions