- This topic has 2 replies, 2 voices, and was last updated 14 years, 9 months ago by .
I need to append zeros to the front of a Dr. number, when that number is less than 5 digits.
I have some code that I use to strip zeros in my translation (see below)
set inp [lindex $xlateInVals 0]
set xlateOutVals [string trimleft $inp 0]
But, I need some that will add zeros until the total number of digits in the number equal 5. Does anyone have anything that they can share?
- The forum ‘Cloverleaf’ is closed to new topics and replies.