Commatizing numbers: Difference between revisions

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

edits