Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Anyone got a zero fill (left) tcl proc or fragment? › Re: Re: Anyone got a zero fill (left) tcl proc or fragment?
June 3, 2005 at 8:48 pm
#56743
Tom Henderson
Participant
For example:
set xlateOutVals [format “%06s” [string trimleft $xlateInVals 0]]
If you’re sure the values will never have a leading zero, then it’s not necessary. But if they ever might….