APM: Question: breaking up a numeric variable

Goldilox Goldilox at teachnet.edb.utexas.edu
Thu Sep 26 13:00:27 CDT 2002


Is there a good way to take a numeric variable of undetermined length

$var=3423723482309234098;
$var2=3325656;
etc.
and print it out with a comma appropriately placed at every third character
slot from the end, i.e.

3,423,723,482,309,234,098
3,325,656
etc.

Rhett




More information about the Austin mailing list