Quote from
susan on August 31, 2022, 8:45 am
Another way that doesn't rely on the locale settings of the pc and in plain NeoScript is:
StrLen [buffer] [bufferLen]
SetVar [index] [bufferLen]-3
While [index] > 0
StrIns "," [buffer] [index] [buffer]
SetVar [index] [index]-3
EndWhile
where buffer contains the number as a string.
Another way that doesn't rely on the locale settings of the pc and in plain NeoScript is:
StrLen [buffer] [bufferLen]
SetVar [index] [bufferLen]-3
While [index] > 0
StrIns "," [buffer] [index] [buffer]
SetVar [index] [index]-3
EndWhile
where buffer contains the number as a string.
luishp has reacted to this post.