Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: format number commas
; ----------- ; Format a number with commas for a nice display ; ----------- tot=250000000 If StrLen(tot) < 9 Then tot = StrCat(StrFill("", 9 - StrLen(tot)), tot) tot = StrCat(StrSub(tot,1,3),",",StrSub(tot,4,3),",",StrSub(tot,7,3)) tot = StrTrim(tot) If StrSub(tot, 1, 1) == "," Then tot = StrSub(tot, 2, StrLen(tot) - 1) tot = StrTrim(tot) If StrSub(tot, 1, 1) == "," Then tot = StrSub(tot, 2, StrLen(tot) - 1) tot = StrTrim(tot) Message("Formatted number", tot)
Article ID: W14657
Filename: Format Numbers with Commas for a Nice Display.txt
File Created: 2000:09:28:12:56:16
Last Updated: 2000:09:28:12:56:16