Category talk:Wren-fmt: Difference between revisions

Content deleted Content added
PureFox (talk | contribs)
→‎Source code: Bug fix plus new method group.
PureFox (talk | contribs)
→‎Source code: Minor bug fix.
Line 164:
// Adds 'thousand separators' to a decimal integer or string.
static commatize(n, c) {
if (!(n is Num && n.isInteger) && !isDecimalisDecimal_(n)) Fiber.abort("Argument is not a decimal integer nor string.")
if (!(c is String) || c.count != 1) Fiber.abort("Separator must be a single character string.")
if (n is Num) n = "%(Conv.dec(n))"
Return to "Wren-fmt" page.