Skip to content

Instantly share code, notes, and snippets.

@lbdyck
Created December 4, 2023 18:48
Show Gist options
  • Save lbdyck/193f8c6cc1efcbe6f9fe7bd07d2655fd to your computer and use it in GitHub Desktop.
Save lbdyck/193f8c6cc1efcbe6f9fe7bd07d2655fd to your computer and use it in GitHub Desktop.
Add Comma to any Number
AddComma: Procedure /* Code provided by Doug Nadel back before the turn of the century */
arg bignum
cbignum = strip(translate('0,123,456,789,abc,def,ghi,jkl,mno,pqr,stu,vwx', ,
right(bignum,34,','), ,
'0123456789abcdefghijklmnopqrstuvwx'),'L',',')
return cbignum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment