Commatizing numbers: Difference between revisions

→‎{{header|Nim}}: fix case when `sep` has more than one character (e.g. `echo commatize("572561234.1D-4", period = 4, sep = "__")`)
m (→‎{{header|Phix}}: added syntax colouring the hard way, showcommas note)
(→‎{{header|Nim}}: fix case when `sep` has more than one character (e.g. `echo commatize("572561234.1D-4", period = 4, sep = "__")`))
Line 968:
for i in countup(ip.high mod period + 1, ip.high, period):
ip.insert(sep, i + inserted)
inc inserted += sep.len
 
# Process decimal part.
1,480

edits