ec_leading_nbsp

one of the documented procedures in this installation of the ACS
Usage:
ec_leading_nbsp   the_integer   n_desired_digits
What it does:
Adds leading nbsps to an integer to give it the desired number of digits
Defined in: /web/philip/tcl/ecommerce-utilities.tcl

Source code:


    set n_digits_to_add [expr $n_desired_digits - [string length $the_integer]]
    if {$n_digits_to_add <= 0} {
	return $the_integer
    } else {
	return [ec_leading_zeros "&nbsp;&nbsp;$the_integer" $n_desired_digits]
    }


philg@mit.edu