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):
%3 test_util__trim_leading_zeros util__trim_leading_zeros (test acs-tcl) util::trim_leading_zeros util::trim_leading_zeros test_util__trim_leading_zeros->util::trim_leading_zeros

Testcases:
util__trim_leading_zeros
[ show source ]
Show another procedure: