Commatizing numbers: Difference between revisions
→{{header|jq}}: tweak
(→{{header|jq}}: tweak) |
|||
Line 1,024:
# Input: the string to be commatized
def
commatize(.; 0; 3; ",");
Line 1,046:
commatize("The author has two Z$100000000000000 Zimbabwe notes (100 trillion)."; 0; 3; "."),
(defaults[] |
exercise
Line 1,052:
{{output}}
Exactly as for [[#Wren[]].
=={{header|Julia}}==
|