mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Merge commit '838bd312b1a287bb33962ad478dbc54737654f35'
This commit is contained in:
@@ -15,7 +15,7 @@ action:
|
||||
aliases: ['/functions/numfmt/']
|
||||
---
|
||||
|
||||
This function formats a number with the given precision. The first options parameter is a space-delimited string of characters to represent negativity, the decimal point, and grouping. The default value is `- . ,`. The second options parameter defines an alternate delimiting character.
|
||||
This function formats a number with the given precision. The first options parameter is a space-delimited string of characters to represent negativity, the decimal point, and grouping. The default value is `- . ,`. The second options parameter defines an alternative delimiting character.
|
||||
|
||||
Note that numbers are rounded up at 5 or greater. So, with precision set to 0, 1.5 becomes 2, and 1.4 becomes 1.
|
||||
|
||||
|
Reference in New Issue
Block a user