util::trim_leading_zeros (public)
util::trim_leading_zeros string
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Returns a string with leading zeros trimmed. Used to get around Tcl interpreter problems without thinking leading zeros are octal.
If string is real and mod(number)<1, then we have pulled off the leading zero; i.e. 0.231 -> .231 - this is still fine for Tcl though...
- Parameters:
- string (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- util__trim_leading_zeros