<pre>function FMTvirgule N  get N  if it is empty or it is not a number then get 0  if it > 100000 then put "," after char 3 of it  else if it > 10000 then put "," after char 2 of it  else if it > 1000 then put "," after char 1 of it  return "$" & itend FMTvirgule</pre>