Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert digit grouping notation
#3
My version:
Macro Macro2485
Code:
Copy      Help
str s="-3456789.1234"

strrev s
REPLACERX r.ifrom=findc(s '.')+1
r.repl="$0,"
s.replacerx("\d{3}(?=\d)" r)
strrev s

out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)